1 | import { MockURL } from './MockURL';
|
2 | import { MockHeaders } from './MockHeaders';
|
3 | export default class MockRequest {
|
4 | private _method;
|
5 | private _url;
|
6 | private _headers;
|
7 | private _body;
|
8 | method(): string;
|
9 | method(method: string): MockRequest;
|
10 | url(): MockURL;
|
11 | url(url: string): MockRequest;
|
12 | header(name: string): null | string;
|
13 | header(name: string, value: string): MockRequest;
|
14 | headers(): MockHeaders;
|
15 | headers(headers: MockHeaders): MockRequest;
|
16 | body(): any;
|
17 | body(body: any): MockRequest;
|
18 | }
|