Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FetchHttpClient

Hierarchy

  • FetchHttpClient

Implements

Constructors

constructor

  • new FetchHttpClient(signer: RequestSigner | null, circuitBreaker?: typeof Breaker, httpOptions?: object | undefined, bodyDuplexMode?: any): FetchHttpClient

Properties

Private bodyDuplexMode

bodyDuplexMode: any

Private circuitBreaker

circuitBreaker: any = (null as unknown) as typeof Breaker

Private httpOptions

httpOptions: object | undefined = undefined

Private Readonly signer

signer: RequestSigner | null

Static Private BODY_DUPLEX_KEY

BODY_DUPLEX_KEY: string = "duplex"

Static Private DEFAULT_DUPLEX_VALUE

DEFAULT_DUPLEX_VALUE: string = "half"

Methods

send

  • send(req: HttpRequest, forceExcludeBody?: boolean, targetService?: string, operationName?: string, timestamp?: string, endpoint?: string, apiReferenceLink?: string): Promise<Response>
  • Parameters

    • req: HttpRequest
    • Default value forceExcludeBody: boolean = false
    • Default value targetService: string = ""
    • Default value operationName: string = ""
    • Default value timestamp: string = new Date().toISOString()
    • Default value endpoint: string = ""
    • Default value apiReferenceLink: string = ""

    Returns Promise<Response>