Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MgRequestInfo

Index

Constructors

constructor

Accessors

acceptedWebSocketSubprotocol

  • get acceptedWebSocketSubprotocol(): string
  • websocket subprotocol, accepted during handshake

    Returns string

contentLength

  • get contentLength(): number
  • Length (in bytes) of the request body, can be -1 if no length was given.

    Returns number

headers

  • get headers(): {}
  • HTTP headers

    Returns {}

    • [name: string]: string

httpVersion

  • get httpVersion(): string
  • e.g. "1.0", "1.1"

    Returns string

isSSL

  • get isSSL(): boolean
  • Returns boolean

localUri

  • get localUri(): string
  • URL-decoded URI (relative) Returns null if the request_uri does not address a resource at the server host

    Returns string

queryString

  • get queryString(): string
  • URL part after '?', not including '?', or null

    Returns string

remoteAddr

  • get remoteAddr(): string
  • Client's IP address as a string.

    Returns string

remotePort

  • get remotePort(): number
  • Client's port

    Returns number

remoteUser

  • get remoteUser(): string
  • Authenticated user, or null if no auth used

    Returns string

requestMethod

requestUri

  • get requestUri(): string
  • URL-decoded URI (absolute or relative, as in the request)

    Returns string

Generated using TypeDoc