UNPKG

592 BTypeScriptView Raw
1/// <reference types="node" />
2import { HttpHeaders } from '@hint/utils-types';
3export declare type Request = {
4 headers: HttpHeaders;
5 url: string;
6};
7export declare type ResponseBody = {
8 content: string;
9 rawContent: Buffer;
10 rawResponse(): Promise<Buffer>;
11};
12export declare type Response = {
13 body: ResponseBody;
14 charset: string;
15 headers: HttpHeaders;
16 hops: string[];
17 mediaType: string;
18 statusCode: number;
19 url: string;
20};
21export declare type NetworkData = {
22 response: Response;
23 request: Request;
24};
25//# sourceMappingURL=network.d.ts.map
\No newline at end of file