type redirect = | Temporary of Uri.t | The redirection is temporary. |
| Permanent of Uri.t | The redirection is permanent. |
redirect indicates whether the originally requested endpoint should continue to be used in the future.
'a t is an API response containing a payload of type 'a. Do not refer to this type explicitly as its identity and representation are subject to change (e.g. a family of object types may replace it before 3.0).
and 'a t = private < value : 'a; redirects : redirect list; .. >'a t is an API response containing a payload of type 'a. Do not refer to this type explicitly as its identity and representation are subject to change (e.g. a family of object types may replace it before 3.0).
redirects r is the sequence of redirects prior to response r.
final_resource rs is the single redirect, if any redirects occurred, that describes the overall redirect chain rs. If any redirect rs is temporary, final_resource rs will be a temporary redirect to the final URI. If all redirects rs are permanent, final_resource rs will be a permanent redirect to the final URI.