Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpRequest

Interface an HTTP request class. Contains addressing information in addition to standard message properties.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Optional body

body: any

headers

headers: HeaderBag

hostname

hostname: string

method

method: string

path

path: string

Optional port

port: undefined | number

protocol

protocol: string

Optional query

Methods

clone

  • clone(): HttpRequest
  • Returns HttpRequest

Static isInstance

  • isInstance(request: unknown): request is HttpRequest
  • Parameters

    • request: unknown

    Returns request is HttpRequest