Home Reference Source

References

hofs

summary
public

F defaultHeaders(_defaultHeaders: object): function

Add HTTP headers to every fetch

public

Manage interceptors - to do something before or after every fetch.

public

F jsonResponse(suppressWarning: boolean): function

Implicitly parse response to json.

public

F logger(customLog: function): function

Log request and response.

public

F onErrorRetry(options: {maxRetry: number, delayMs: number}): function

Creat a fetch which retries when:

  • GET with 5XX error
  • Network error

utils

summary
public

F pipe(fns: ...function)

Use this to create your fetch method by pipe multiple higher-order fetches.

Directories