Inheritance diagram for Request:The request.
Protected Properties | |
| Upload[][] | $fileGroups = [] |
| Grouped file uploads (multiple). More... | |
| Upload[] | $files = [] |
| File uploads (singular). More... | |
| string[] | $headers = [] |
| Request headers, keyed in lowercase. More... | |
| string | $path |
| The request path, without arguments, cleaned up. More... | |
| string[] | $proxies = [] |
| Trust client IP forwarding from these proxies. More... | |
Public Methods | |
| __construct () | |
| Constructs using CGI data. More... | |
| string | __toString () |
| array | getArgs () |
Returns POST args merged over GET args. More... | |
| string | getClient () |
| Returns the client IP, which may have been forwarded. More... | |
| null Upload | getFile (string $name) |
| Upload[] | getFileGroup (string $name) |
| Upload[][] | getFileGroups () |
| Upload[] | getFiles () |
| string[] | getHeaders () |
| string | getMethod () |
| string | getPath () |
| string[] | getProxies () |
| bool | isDelete () |
| bool | isGet () |
| bool | isHead () |
| bool | isMuting () |
| Whether the request can produce side-effects. More... | |
| bool | isPost () |
| bool | offsetExists ($key) |
| Checks for a request header. More... | |
| null string | offsetGet ($key) |
| Returns a request header. More... | |
| void | offsetSet ($key, $value) |
| Throws. More... | |
| void | offsetUnset ($key) |
| Throws. More... | |
| $this | setProxies (array $proxies) |
|
protected |
Request headers, keyed in lowercase.
|
protected |
The request path, without arguments, cleaned up.
|
protected |
Trust client IP forwarding from these proxies.
| __construct | ( | ) |
Constructs using CGI data.
|
final |
| array getArgs | ( | ) |
Returns POST args merged over GET args.
| string getClient | ( | ) |
Returns the client IP, which may have been forwarded.
|
final |
| string | $name |
| string [] getHeaders | ( | ) |
|
final |
|
final |
| string [] getProxies | ( | ) |
|
final |
|
final |
|
final |
|
final |
Whether the request can produce side-effects.
|
final |
| bool offsetExists | ( | $key | ) |
Checks for a request header.
| string | $key |
| null string offsetGet | ( | $key | ) |
Returns a request header.
| string | $key |
|
final |
Throws.
| mixed | $key | |
| mixed | $value |
| LogicException |
|
final |
Throws.
| mixed | $key |
| LogicException |
| $this setProxies | ( | array | $proxies | ) |
| string[] | $proxies |