Options
All
  • Public
  • Public/Protected
  • All
Menu

The various fetchers mimic the native fetch method, adding increasingly opinionated layers on top of it.

  • RewritingFetcher is the most basic, simply allowing (asynchronous) manipulation of a fetch request before it is sent.
  • JsonFetcher adds automatic serialization and deserialization, using the JsonConverter to convert into given TypeScript types.
  • RestFetcher provides GET/PUT/POST/DELETE semantics for the object type handled by the underlying JsonFetcher.

Index

Type aliases

RequestRewriter

RequestRewriter: (request: SimpleRequest) => SimpleRequest | Promise<SimpleRequest> | Observable<SimpleRequest>

Type declaration

Functions

Const ABORT

Const ANONYMOUS

ensureLeadingQuestionmark

  • ensureLeadingQuestionmark(url: string): string
  • ensureLeadingQuestionmark(url: undefined | null | string): string | undefined
  • Parameters

    • url: string

    Returns string

  • Parameters

    • url: undefined | null | string

    Returns string | undefined

ensureTrailingSlash

  • ensureTrailingSlash(url: string): string
  • ensureTrailingSlash(url: undefined | null | string): string | undefined
  • Parameters

    • url: string

    Returns string

  • Parameters

    • url: undefined | null | string

    Returns string | undefined

noTrailingSlash

  • noTrailingSlash(url: string): string
  • noTrailingSlash(url: undefined | null | string): string | undefined
  • Parameters

    • url: string

    Returns string

  • Parameters

    • url: undefined | null | string

    Returns string | undefined

setHeader

setHeaders

toQueryString

  • toQueryString(query: undefined | null | string | {}): string
  • Parameters

    • query: undefined | null | string | {}

    Returns string