Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpContext

Hierarchy

  • HttpContext

Constructors

  • new HttpContext(host: string, method: HttpMethodType, uri: string, protocol?: string, port?: number, body?: any, headers?: any, files?: any[]): HttpContext

Properties

body: any
cookies: any
files: any[]
headers: any
host: string
origin: string
port: number
prefix: string = ""

URI prefix in case it is exposed through something that prefix the uri

protocol: string
root: string
uri: string

Methods

  • getAbsoluteUrl(uri?: string): string
  • getBody(): any
  • getCookies(): any
  • getHeader(name: string): string
  • getHeaders(): any
  • getHost(): string
  • getPort(): number
  • getProtocol(): string
  • getRelativeUri(): string
  • getUrl(): string
  • setBody(body: any): void
  • setPrefix(prefix: string): void

Generated using TypeDoc