UNPKG

@paperbits/common

Version:
26 lines (22 loc) 445 B
import { HttpHeader } from "./httpHeader"; /** * HTTP request. */ export interface HttpRequest { /** * Request URL, e.g. `https://httpbin.org/get`; */ url: string; /** * HTTP method, e.g. `GET`. */ method?: string; /** * HTTP headers, e.g. `application/json`. */ headers?: HttpHeader[]; /** * HTTP request body (optional). */ body?: any; }