Fetch icon indicating copy to clipboard operation
Fetch copied to clipboard

Asynchronous HTTP client with promises.

Results 16 Fetch issues
Sort by recently updated
recently updated
newest added

PHP.Gt/Async and PHP.Gt/Promise will reduce the dependency complexity.

Dependabot needs to be tamed, as per PhpGt/WebEngine#568

Pass the request body as a FormData object to automatically set the correct content type. Currently trying to decide whether the FormData object should be the responsibility of this repository,...

enhancement

Should the following init parameters be respected on the server-side? + mode + credentials + referrerPolicy + keepalive See: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch

The AbortSignal callback should be passed in to cancel any ongoing requests from code external to the async loop.

Currently not implemented but should probably be a feature of PHP.Gt/Curl or PHP.Gt/Http.

The init parameter "cache" specifies one of the following cache modes: + default + no-store + reload + no-cache + force-cache + only-if-cached See: https://developer.mozilla.org/en-US/docs/Web/API/Request/cache Currently, there is no cache...

If many requests are sent in parallel, this will likely max out the CPU and cause issues. There could be a locking mechanism used to only allow a certain number...

question

In PHP, binary data is represented in strings, so the `BodyResponse::blob()` resolved data is exactly the same as `BodyResponse::text()`. This might be OK, but is there some functionality missing in...

enhancement