Releases: Agbokoudjo/http_client
Releases · Agbokoudjo/http_client
Release list
2.0.0
[2.0.0]
Added
HttpRedirectResponseError— surfaces server redirects explicitly instead of
letting them silently corrupt or crash a response.isJSONResponseutility.
Fixed
safeFetch/responseTypeHandleno longer throw a crypticSyntaxError
when ajson/formDatarequest is redirected to non-JSON content
(e.g. session expired → login page).
BREAKING CHANGE
responseType: 'text' | 'blob' | 'arrayBuffer' | 'stream'now throws
HttpRedirectResponseErroron any redirect (raw 3xx or auto-followed),
including previously-silent cases like a CDN redirecting a file download.
Previously these response types never threw on redirect. If your code
relies on transparently following redirects for these types, catch
HttpRedirectResponseErrorand handle it explicitly.
v1.2.3
v1.2.2
v1.2.1
v1.2.0
update dependancies @wlindabla/event_dispatcher