drupflare/worker - v1.0.4
    Preparing search index...

    Function httpCacheGet

    • a fresh cached response, or with allowStale a servable stale one below 500; else undefined

      Parameters

      • site: SitePhpDurableObject
      • url: string
      • method: string = 'GET'
      • body: string = ''
      • headers: Record<string, string> = {}
      • opts: { allowStale?: boolean } = {}

      Returns { body: string; headers: Payload; stale: boolean; status: number } | undefined