Permalink
Cannot retrieve contributors at this time
23 lines (23 sloc)
1.06 KB
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/@azure/ms-rest-js/es/lib/fetchHttpClient.d.ts
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { HttpClient } from "./httpClient"; | |
import { WebResourceLike } from "./webResource"; | |
import { HttpOperationResponse } from "./httpOperationResponse"; | |
import { HttpHeadersLike } from "./httpHeaders"; | |
export declare type CommonRequestInfo = string; | |
export declare type CommonRequestInit = Omit<RequestInit, "body" | "headers" | "signal"> & { | |
body?: any; | |
headers?: any; | |
signal?: any; | |
}; | |
export declare type CommonResponse = Omit<Response, "body" | "trailer" | "formData"> & { | |
body: any; | |
trailer: any; | |
formData: any; | |
}; | |
export declare abstract class FetchHttpClient implements HttpClient { | |
sendRequest(httpRequest: WebResourceLike): Promise<HttpOperationResponse>; | |
abstract prepareRequest(httpRequest: WebResourceLike): Promise<Partial<RequestInit>>; | |
abstract processRequest(operationResponse: HttpOperationResponse): Promise<void>; | |
abstract fetch(input: CommonRequestInfo, init?: CommonRequestInit): Promise<CommonResponse>; | |
} | |
export declare function parseHeaders(headers: Headers): HttpHeadersLike; | |
//# sourceMappingURL=fetchHttpClient.d.ts.map |