1 | import { HttpClient } from "./httpClient";
|
2 | import { WebResourceLike } from "./webResource";
|
3 | import { HttpOperationResponse } from "./httpOperationResponse";
|
4 | import { HttpHeadersLike } from "./httpHeaders";
|
5 | export declare type CommonRequestInfo = string;
|
6 | export declare type CommonRequestInit = Omit<RequestInit, "body" | "headers" | "signal"> & {
|
7 | body?: any;
|
8 | headers?: any;
|
9 | signal?: any;
|
10 | };
|
11 | export declare type CommonResponse = Omit<Response, "body" | "trailer" | "formData"> & {
|
12 | body: any;
|
13 | trailer: any;
|
14 | formData: any;
|
15 | };
|
16 | export declare abstract class FetchHttpClient implements HttpClient {
|
17 | sendRequest(httpRequest: WebResourceLike): Promise<HttpOperationResponse>;
|
18 | abstract prepareRequest(httpRequest: WebResourceLike): Promise<Partial<RequestInit>>;
|
19 | abstract processRequest(operationResponse: HttpOperationResponse): Promise<void>;
|
20 | abstract fetch(input: CommonRequestInfo, init?: CommonRequestInit): Promise<CommonResponse>;
|
21 | }
|
22 | export declare function parseHeaders(headers: Headers): HttpHeadersLike;
|
23 |
|
\ | No newline at end of file |