1 | import { MockHeaders } from './MockHeaders';
|
2 | export default class MockResponse {
|
3 | private _status;
|
4 | private _reason;
|
5 | private _headers;
|
6 | private _body;
|
7 | status(): number;
|
8 | status(status: number): MockResponse;
|
9 | reason(): string;
|
10 | reason(reason: string): MockResponse;
|
11 | statusText(): null | string;
|
12 | statusText(reason: string): MockResponse;
|
13 | header(name: string): null | string;
|
14 | header(name: string, value: string): MockResponse;
|
15 | headers(): MockHeaders;
|
16 | headers(headers: MockHeaders): MockResponse;
|
17 | body(): any;
|
18 | body(body: any): MockResponse;
|
19 | }
|