Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/core/request/const

Index

Variables

cache: Record<Exclude<CacheStrategy, default | Promise<default>>, default> = ...
caches: Set<default<unknown, string>> = ...
defaultRequestOpts: { cacheMethods: RequestMethod[]; cacheStrategy: CacheStrategy; engine: RequestEngine; headers: RawHeaders; meta: Dictionary<unknown>; method: RequestMethod; offlineCacheTTL: number; query: RequestQuery; querySerializer: { (data: unknown, encode?: boolean): string; (data: unknown, opts: ToQueryStringOptions): string } } = ...

Type declaration

  • cacheMethods: RequestMethod[]
  • cacheStrategy: CacheStrategy
  • engine: RequestEngine
  • headers: RawHeaders
  • meta: Dictionary<unknown>
  • method: RequestMethod
  • offlineCacheTTL: number
  • query: RequestQuery
  • querySerializer: { (data: unknown, encode?: boolean): string; (data: unknown, opts: ToQueryStringOptions): string }
      • Creates a querystring from the specified data and returns it

        example
        // '?a=1'
        toQueryString({a: 1});

        Parameters

        • data: unknown
        • Optional encode: boolean

        Returns string

      • Creates a querystring from the specified data and returns it

        example
        // '?a[]=1&a[]=2'
        toQueryString({a: [1, 2]}, {arraySyntax: true});

        Parameters

        Returns string

globalOpts: GlobalOptions = ...
isAbsoluteURL: RegExp = ...
methodsWithoutBody: Pick<{ GET: boolean; HEAD: boolean }, "GET" | "HEAD"> = ...
pendingCache: default<RequestResponse<unknown>, string> = ...
storage: CanUndef<Promise<AsyncStorage>>