@coolio/http
Version:
HTTP networking client
11 lines • 542 B
TypeScript
import { BodyCasing, CaseConverter } from './helpers';
import { BodyParser, RawHttpResponse } from './httpClient.types';
declare type BodyParserImplementation = (rawResponse: RawHttpResponse) => Promise<any>;
export interface BodyParserOptions {
bodyCasing?: BodyCasing;
customCaseConverter?: CaseConverter;
defaultParser?: BodyParserImplementation;
}
export declare const bodyParser: ({ bodyCasing, customCaseConverter, defaultParser, }?: BodyParserOptions) => BodyParser<any>;
export {};
//# sourceMappingURL=bodyParser.d.ts.map