/* 可以添加的全局屬性 */
// app.context.a=12;
/* get請求的數據 */
// ctx.query
/* 客戶端的ip */
// ctx.ip
/* 請求頭 */
// ctx.headers
/* 設置請求頭 */
// ctx.set('content-type', json`);
/* 原生的request對象 */
// ctx.req
/* 原生的response對象 */
// ctx.res
/* koa自己的request對象 */
// ctx.request
/* koa自己的response對象 */
// ctx.response
/* 返回狀態 */
// ctx.state=404;
/* 拋出錯誤 */
// ctx.throw(400, "錯誤");
/* 帶有判斷條件的拋出錯誤 */
// ctx.assert(1 > 0, 400, "錯誤");
/* 重定向 */
// ctx.redirect("/api/user/UserLogin")
/* 返回下載文件 */
// let file = await fs.readFileSync("../routers/01.txt");
// ctx.attachment("name.txt");
// ctx.body = file;