Fetch
Fetch copied to clipboard
Asynchronous HTTP client with promises.
These functions should be available procedurally rather than requiring the construction of a new Http object each time.
As per https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch/fetch , if the init config has `redirect = error`, an exception should be thrown if there is a redirect on the request.
This is a good example of implementing a timeout, by setting a timer for X seconds that calls the abort controller. https://developer.mozilla.org/en-US/docs/Web/API/AbortController
Requests that have the added header of `Content-type: application/x-www-form-urlencoded` should force their POST body to be form-urlencoded, even if a FormData or array has been provided.
Bumps [phpgt/http](https://github.com/PhpGt/Http) from 1.1.9 to 1.1.10. Release notes Sourced from phpgt/http's releases. May 2023 release (PSR-7 v2) This minor patch release introduces compatibility changes for PSR-7 v2, which defines type...
Bumps [phpgt/curl](https://github.com/PhpGt/Curl) from 3.0.5 to 3.1.0. Release notes Sourced from phpgt/curl's releases. March 2023 minor release This minor release was made following on from the documentation being finalised, after everything...