UNPKG

@hyper-fetch/core

Version:

Cache, Queue and Persist your requests no matter if you are online or offline!

10 lines 825 B
import { QueryParamsType } from '../adapter'; import { RequestInstance } from '../request'; import { ExtractErrorType, EmptyTypes } from '../types'; import { BufferEncoding, QueryStringifyOptionsType } from './http-adapter.types'; export declare const getResponseHeaders: (headersString: string) => Record<string, string>; export declare const parseResponse: (response: string | unknown) => any; export declare const handleResponse: (responseChunks: any[], responseType: string, responseEncoding: BufferEncoding) => any; export declare const parseErrorResponse: <T extends RequestInstance>(response: unknown) => ExtractErrorType<T>; export declare const stringifyQueryParams: (queryParams: QueryParamsType | string | EmptyTypes, options?: QueryStringifyOptionsType) => string; //# sourceMappingURL=http-adapter.utils.d.ts.map