Configuration
Configuration options for WPZylos HTTP.
Service Provider
The HttpServiceProvider registers all HTTP components.
Container Bindings
| Binding | Class | Description |
|---|---|---|
Request::class | Request | Current request |
'request' | Request | Alias |
Pipeline::class | Pipeline | Middleware pipeline |
Request Configuration
The Request object captures from $_GET, $_POST, $_FILES, and $_SERVER superglobals.
Response Headers
Set custom headers:
Response::json($data)
->withHeader('X-Custom-Header', 'value')
->withHeader('Cache-Control', 'no-cache');