Configuration

Configuration options for WPZylos HTTP.

Service Provider

The HttpServiceProvider registers all HTTP components.

Container Bindings

BindingClassDescription
Request::classRequestCurrent request
'request'RequestAlias
Pipeline::classPipelineMiddleware 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');