ClientOpts: { ammendXhr?: ((xhr: XMLHttpRequest) => void); authentication?: Authentication | Authentication[] }

Basic options passed on the creation of an API client with createApiClient

Type declaration

  • Optional ammendXhr?: ((xhr: XMLHttpRequest) => void)
      • (xhr: XMLHttpRequest): void
      • Maps over all XmlHttpRequests going out from estuary-rpc-client before they are opened, allowing for additional modifications/callbacks

        Parameters

        • xhr: XMLHttpRequest

        Returns void

  • Optional authentication?: Authentication | Authentication[]

    Authentication data to be attatched to XmlHttpRequests

Generated using TypeDoc