Search by

hypervel / http

albertchtbinaryfire

The Hypervel HTTP package.

Package info

github.com/hypervel/http

Issues

pkg:composer/hypervel/http

Statistics

Installs: 21 853

Dependents: 41

Suggesters: 4

Stars: 0

v0.3.26 2026-07-22 03:02 UTC

README

Ask DeepWiki

Documentation: https://hypervel.org/docs/requests

Differences From Laravel

Request::all([]) returns an empty array. Use all() to retrieve every input field.

Laravel's withNtlmAuth() is omitted. Integrations requiring NTLM must supply their own authentication middleware.

Laravel's deprecated Request::get() method is intentionally not ported because it mixes route attributes, query parameters, and request body input behind one ambiguous API. Use input(), query(), or route() to select the intended source explicitly.

Hypervel creates requests from Swoole's server request instead of Request::capture(). Responses are also emitted by Hypervel's server bridge rather than by calling Response::sendContent() directly.

JSON:API resources load requested relationships before attribute callbacks run; default attributes exclude reserved fields and declared relationship names. See the porting guide.

Laravel's Http::pool() and Http::batch() APIs are intentionally not ported. They are built around Guzzle promise concurrency, while Hypervel uses Swoole coroutine-native concurrency through parallel, Hypervel\Coroutine\Parallel, and defer. See the concurrent requests documentation.

Pending Guzzle promises and active cURL multi-handlers belong to the coroutine that created their work. Create and finish each operation in that coroutine, then share completed results. See Guzzle promises.

The HTTP client requires hypervel/guzzle, a Guzzle 8 fork that replaces guzzlehttp/guzzle. Laravel supports Guzzle 7 and 8; Hypervel does not support Guzzle 7 or SDKs limited to it. See the porting guide.

TrustHosts fails closed when no trusted host patterns resolve. If the middleware is enabled and no resolver, at() list, or valid app.url host provides a trusted pattern, Hypervel rejects all hosts using a never-matching sentinel. Laravel and Symfony leave the trusted host list empty in this case, which accepts every host. Configure a valid app.url, TrustHosts::at(), or TrustHosts::resolveHostsUsing() when enabling the middleware.

Configure trusted proxies through $middleware->trustProxies(...) in bootstrap/app.php. Hypervel does not read the legacy trustedproxy.proxies configuration key or include Laravel's Cloud, Forge, and Vapor host-specific proxy behavior.

Ported from: https://github.com/laravel/framework