Skip to content
hypervelPublic

About

[READ ONLY] Subtree split of the http component (see hypervel/components)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

428 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Http for Hypervel

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

About

[READ ONLY] Subtree split of the http component (see hypervel/components)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages