Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HttpClientOptions

The set of options that can be used when constructing a the default HttpClient instance through the createHttpClient factory method.

Hierarchy

  • HttpClientOptions

Index

Properties

Properties

Optional fetch

fetch: Fetch

The fetch function to use to make the actual low-level HTTP request.

Inferrence

When not provided (default), the fetch to use is actually inferred based on the runtime environment.

If a window.fetch function exists, which should be the case on a Browser environment, it will be used.

If a global.fetch function exists, which can be the case upon a global.fetch = ... call at the bootstrap phase in a Node.js environment, it will be used

Finally, if no fetch function could be determined, a DfuseError is thrown with a message explaining the situtation and a link to the documentation on how to solve the problem.

default

undefined (Inferred based on environment, see Inferrence note above)

Generated using TypeDoc