Options
All
  • Public
  • Public/Protected
  • All
Menu

An HTTP request

Hierarchy

  • HttpRequest

Index

Properties

connection?: HttpConnection

HTTP connection data.

headers?: Partial<Record<string, string | string[]>>

All request headers (including cookies).

path?: string

The path part of the URL, including a query string if present. For example: '/path/to/page?foo=1'. The path always starts with '/'.

deprecated

The parameter is deprecated in favor of path in the configuration object.

visitor?: Omit<Visitor, "new">

Current request visitor.

Methods

  • emit(event: string | symbol, ...args: any[]): boolean