Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Context<ReqBody>

Context a request is executed in.

Contains all the information needed to send a request.

Type parameters

  • ReqBody

Hierarchy

  • Context

Index

Properties

body

body: ReqBody | undefined

body is the payload sent as part of the request.

For reads (HEAD,GET,etc) use undefined.

cookies

cookies: Container

cookies Container

headers

headers to be sent.

host

host: Host

host the request is bound for.

method

method: Method

method request type.

options

options: Options

Options specified for the original Request.

path

path: Path

path requested.

port

port: number

port

Generated using TypeDoc