cfw_close_session()
cfw_close_session() : string
Closes the session an earlier render left open.
Returns
string —What was done, for the probe that reports it.
cfw_serve(string $path, bool|string $destruct = true, string $method = 'GET', string $body = '', string $contentType = '', string $cookieHeader = '', string $origin = '', string $clientIp = '', string $accept = '', array $headers = []) : \Symfony\Component\HttpFoundation\Response
Runs one request through the booted kernel and returns the response.
| string | $path | The request path, with its query string. |
| bool|string | $destruct | True, false, or a comma-separated allowlist of service ids to destruct. |
| string | $method | The HTTP method. |
| string | $body | The raw request body. |
| string | $contentType | The request content type. |
| string | $cookieHeader | The raw Cookie header. |
| string | $origin | A scheme://host[:port], or an empty string. |
| string | $clientIp | The visitor's address, or an empty string. |
| string | $accept | The raw Accept header, or an empty string. |
| array | $headers | Every other inbound header, lowercase name to value, such as authorization. |
The kernel's response.