1 |
|
2 |
|
3 |
|
4 | import {
|
5 | CommonRequestInfo,
|
6 | CommonRequestInit,
|
7 | CommonResponse,
|
8 | FetchHttpClient,
|
9 | } from "./fetchHttpClient";
|
10 | import { HttpOperationResponse } from "./httpOperationResponse";
|
11 | import { WebResourceLike } from "./webResource";
|
12 |
|
13 | export class BrowserFetchHttpClient extends FetchHttpClient {
|
14 | prepareRequest(_httpRequest: WebResourceLike): Promise<Partial<RequestInit>> {
|
15 | return Promise.resolve({});
|
16 | }
|
17 |
|
18 | processRequest(_operationResponse: HttpOperationResponse): Promise<void> {
|
19 | return Promise.resolve();
|
20 | }
|
21 |
|
22 | fetch(input: CommonRequestInfo, init?: CommonRequestInit): Promise<CommonResponse> {
|
23 | return fetch(input, init);
|
24 | }
|
25 | }
|