Represents the information required to make an HTTP request.

Hierarchy

  • HttpRequestInfo

Properties

body?: string

Body of the request in case of a POST, PATCH or PUT request

headers?: OutgoingHttpHeaders

Extra headers to include in the request on top of the standard headers

method: HttpMethod

HTTP method to use for the request (GET, POST, PATCH, DELETE, PUT)

parts?: HttpRequestPart[]

Parts of the request in case of a multipart request

timeout?: number

Timeout in milliseconds for the request

url: string

URL to make the request to