Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FetchHttpFactory

This class provides an fetch http client to send requests the AHOI API. Request parameter, header and data and the response from AHOI can be changed using filters {@link FetchHttpFilter}.

export
class

FetchHttpFactory

Hierarchy

  • FetchHttpFactory

Index

Constructors

Methods

Constructors

constructor

Methods

getHttpClient

  • getHttpClient(installationId?: undefined | string, bankingToken?: undefined | string): FetchAPI
  • The generated AHOI API client takes as initialization parameters a configuration, a baseurl and an httpclient {FetchAPI}. This method returns a function as an implementation of the FetchAPI that allows to change request to the AHOI API and the response using filters {@link FetchHttpFilter}.

    memberof

    FetchHttpFactory

    Parameters

    • Optional installationId: undefined | string
    • Optional bankingToken: undefined | string

    Returns FetchAPI

setHttpFilter

  • Set http filters that will be applied to every request and response. The filters will be called in given order for requests and in reverse order for responses.

    memberof

    FetchHttpFactory

    Parameters

    Returns void