A read-only view of a web request, held in Evidence under server.http-request.
It has no setters, and each getter returns a copy of its array.
|
| | __construct (array $headers, array $cookies, array $query, array $session, string $clientIp, string $protocol, string $method, string $path) |
| | getHeaders () |
| | Every header, including Cookie, by lower case name.
|
| | getCookies () |
| | getQuery () |
| | getSession () |
|
| getClientIp () |
| | getProtocol () |
| | The request's own protocol, http or https, from the HTTPS server value or the X-Forwarded-Proto header.
|
|
| getMethod () |
|
| getPath () |
| | The path of the request line as sent, with no decoding.
|
| fiftyone\pipeline\core\HttpRequest::getHeaders |
( |
| ) |
|
Every header, including Cookie, by lower case name.
- Returns
- array<string, string>
| fiftyone\pipeline\core\HttpRequest::getProtocol |
( |
| ) |
|
The request's own protocol, http or https, from the HTTPS server value or the X-Forwarded-Proto header.
The Referer does not change it.