http_interceptors/attestation_support library
Constants
-
redirectStatuses
→ const Set<
int> -
The statuses whose
Locationthe integrations follow.
Functions
-
hasHeader(
Map< String, dynamic> headers, String name) → bool -
Whether
headersalready holdsname, compared case-insensitively. -
headersForHop(
Map< String, String> headers, Uri from, Uri to) → Map<String, String> -
The headers to carry to a redirect hop from
fromtoto, before the attestation headers are re-requested: asdart:iodoes, credentials and cookies are dropped unlesstois the same origin or a subdomain of it. -
isRedirectableMethod(
String method) → bool -
Whether a request with
methodis followed on redirect.dart:iofollows onlyGETandHEAD; the integrations do the same.