Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Static logs

Logs from http call

static
type

{SizeRestrictedLog}

memberof

SpyHttp

Static Optional originalGet

originalGet: undefined | function

Original Get method from http request

static
memberof

SpyHttp

Static Optional originalRequest

originalRequest: undefined | function

Original Request method from http request

static
memberof

SpyHttp

Static Optional originalRequestSecure

originalRequestSecure: undefined | function

Original Request method from https request

static
memberof

SpyHttp

Methods

Static addLogEntry

  • addLogEntry(urlOrOptions: any): string
  • Add a new log entry and return the id of the log

    static
    memberof

    SpyHttp

    Parameters

    • urlOrOptions: any

    Returns string

Static getEntries

Static getMockedRequestArgs

  • getMockedRequestArgs(id: any, ...args: any[]): any[]
  • Get Modified arguments with fake cb

    static
    memberof

    SpyHttp

    Parameters

    • id: any
    • Rest ...args: any[]

    Returns any[]

Static getRemark

  • getRemark(): string

Static handleClientRequest

  • handleClientRequest(id: any, clientRequest: any): any

Static init

Static Private proxyGet

  • proxyGet(...args: any[]): any
  • Proxy request method

    function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; function request(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;

    memberof

    SpyHttp

    Parameters

    • Rest ...args: any[]

    Returns any

Static Private proxyHttpsRequest

  • proxyHttpsRequest(...args: any[]): any

Static Private proxyRequest

  • proxyRequest(...args: any[]): any
  • Proxy request method

    function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; function request(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;

    memberof

    SpyHttp

    Parameters

    • Rest ...args: any[]

    Returns any

Static start

  • start(): void

Static stop

  • stop(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc