Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RequestContext

Hierarchy

Index

Constructors

constructor

Properties

transforms

transforms: Array<ContextualTransform<any, Partial<Request>>>

Methods

body

  • body(body: Apply<any, any>): this

clone

headers

  • headers(headers: Apply<Record<string, string>, any>): this

merge

method

middleware

path

  • path(pathname: Apply<string, any>): this

port

  • port(port: Apply<number, any>): this

query

  • query(query: Apply<string, any>): this
  • query(name: string, value: string): this

resolve

  • resolve(context?: any, initialValue?: object): Request
  • apply all transformations to resolve the result object

    Parameters

    • Default value context: any = null

      a context object passed to each transform

    • Default value initialValue: object = {}

      the initial value passed into the transformation chain

    Returns Request

set

update

url

  • url(url: Apply<string, any>): this

Generated using TypeDoc