Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultTransporter

DefaultTransporter

Hierarchy

  • DefaultTransporter

Implements

Index

Constructors

constructor

Properties

expectedStatusCodes

expectedStatusCodes: number[]

Static USER_AGENT

USER_AGENT: string = `coa-service/${pkg.version}`

Default user agent.

Methods

request

  • request(options: request.OptionsWithUri): Promise<any>
  • Makes a request with given options and invokes callback.

    Parameters

    • options: request.OptionsWithUri

    Returns Promise<any>

Private wrapCallback

  • wrapCallback(error: any, response: request.RequestResponse, body: any): any
  • Wraps the response callback.

    Parameters

    • error: any
    • response: request.RequestResponse
    • body: any

    Returns any

Static CONFIGURE

  • CONFIGURE(options: request.OptionsWithUri): request.OptionsWithUri
  • Configures request options before making a request.

    Parameters

    • options: request.OptionsWithUri

    Returns request.OptionsWithUri

Generated using TypeDoc