Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Request

A simple facade for the node http IncomingMessage

Hierarchy

  • Request

Index

Constructors

constructor

  • new Request(request: IncomingMessage, body: string, binary: any, params: Object): Request

Properties

Private binary

binary: any

body

body: string

The http body

headers

headers: IncomingHttpHeaders

The http headers

method

method: string

The http method

params

params: Object

The request url params Will add key and values for the route specific defined parameters (e.g. /:id)

Private request

request: IncomingMessage

url

url: string

The request url

Methods

file

  • file(targetPath: string): void

json

  • json(): Object

Static readRequestBody

  • readRequestBody(request: IncomingMessage): Promise<Buffer>