Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HttpRequest

An HttpRequest is stack allocated and only accessible during the callback invocation.

Hierarchy

  • HttpRequest

Index

Methods

getHeader

getMethod

  • getMethod(): string
  • Returns the HTTP method, useful for "any" routes.

    Returns string

getParameter

  • getParameter(index: number): string
  • Returns the parsed parameter at index. Corresponds to route.

    Parameters

    • index: number

    Returns string

getQuery

  • getQuery(): string
  • Returns the part of URL after ? sign or empty string.

    Returns string

getUrl

  • getUrl(): string
  • Returns the URL including initial /slash

    Returns string

Generated using TypeDoc