xshell 1.0.89 → 1.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.d.ts +1 -1
- package/server.js +1 -0
package/package.json
CHANGED
package/server.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export declare class Server {
|
|
|
88
88
|
/** 被子类重写以自定义处理逻辑 */
|
|
89
89
|
router(ctx: Context): Promise<boolean>;
|
|
90
90
|
/** 重定向 ctx 到 url (可以是完整 url 也可以是路径),设置 status code 为 code */
|
|
91
|
-
redirect(ctx: Context, url: string, code?: 301 | 302):
|
|
91
|
+
redirect(ctx: Context, url: string, code?: 301 | 302): boolean;
|
|
92
92
|
logger(ctx: Context): void;
|
|
93
93
|
process_ua(ctx: Context): string;
|
|
94
94
|
format_ua(headers: IncomingHttpHeaders | IncomingHttp2Headers): string;
|