Options
All
  • Public
  • Public/Protected
  • All
Menu

Tiny Http Request class.

Hierarchy

  • Request

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Request(req: ClientRequest): Request

Properties

Optional response

response?: Response

Response result (if any)

Accessors

headers

  • get headers(): Record<string, unknown>
  • Get request headers

    Returns Record<string, unknown>

method

raw

  • get raw(): ClientRequest
  • Get raw request

    Returns ClientRequest

socket

  • get socket(): null | Socket
  • Get Socket connection

    Returns null | Socket

url

  • get url(): string
  • Get requested url

    Returns string

Methods

setResponse

Generated using TypeDoc