Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Request

Represents an incoming request.

Hierarchy

  • Request

Index

Properties

Optional body

body: undefined | string

The request body as a string

headers

headers: {}

The request headers. Keys are header names, values are either a string, or when multiple values for the same header name are present, an array of strings.

Type declaration

  • [key: string]: string | string[]

Optional method

method: undefined | string

The HTTP method

Optional params

params: undefined | {}

The path params returned by the matching route.

Optional query

query: undefined | {}

The params extracted from the request URL's query string

url

url: string

The path and query string

Generated using TypeDoc