Skip to content

Commit 37fa3a9

Browse files
committed
Complete typings.
1 parent 7e5ccff commit 37fa3a9

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

dist/http.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export declare const HTTP_HEADER: object;
2+
export declare const HTTP_MEDIA_TYPE: object;
3+
export declare const HTTP_METHOD: object;
4+
export declare const STATUS_CODE_EMPTY: number[];
5+
export declare const STATUS_CODE_REDIRECT: number[];
6+
export declare const STATUS_CODE_RETRY: number[];
7+
export declare const STATUS_CODE_TAG: object;
8+
export declare const STATUS_CODE_TEXT: object;
9+
export function httpResponse(code: number | string, message?: string | object): object;
10+
export function httpResponseHtml(code: number | string, message?: string | object): string;
11+
export function httpResponseJson(code: number | string, message?: string | object): string;
12+
export function httpResponseText(code: number | string, message?: string | object): string;
13+
export function httpResponseXml(code: number | string, message?: string | object): string;
14+
export function httpStatusCode(code: number | string): number;
15+
export function httpStatusText(code: number | string): string;

0 commit comments

Comments
 (0)