Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an HTTP request context

Hierarchy

  • RequestContext

Index

Constructors

Properties

agent: undefined | Agent | Agent = undefined
body: RequestBody = undefined
headers: {} = {}

Type declaration

  • [key: string]: string
url: URL

Methods

  • addCookie(name: string, value: string): void
  • Sets a cookie with the name and value. NO check for duplicate cookies is performed

    Parameters

    • name: string
    • value: string

    Returns void

  • getAgent(): undefined | Agent | Agent
  • getHeaders(): {}
  • getUrl(): string
  • setAgent(agent: Agent | Agent): void
  • setHeaderParam(key: string, value: string): void
  • setQueryParam(name: string, value: string): void
  • setUrl(url: string): void

Generated using TypeDoc