A11 TypeScript API - v0.2.1
    Preparing search index...

    Function statusFromResponse

    • Converts a non-success Fetch response without parsing its body more than once. A JSON A11 Status is preserved when the peer supplied one.

      Parameters

      • response: Response
      • operation: string = 'HTTP request'

      Returns Promise<Status>