export type HeadersObject = Record; export type HeadersInit = Headers | HeadersObject | Record | Iterable | Iterable>; export type BodyInit = Blob | Buffer | URLSearchParams | string; export interface RequestInit { body?: BodyInit | null; headers?: HeadersInit; method?: string; } export type RequestInfo = string | Request; export interface Request { readonly headers: Headers | HeadersObject; readonly method: string; readonly url: string; } /** * Generate an http message string using the fetch API * * @param input Fetch input * @param init Fetch init * @returns The http message string */ export default function fetchHttpMessage(input: RequestInfo, init?: RequestInit): string;