
Public Member Functions | |
| getHttpVersion () | |
| Provides the http version used for the request. | |
| getRequestMethod () | |
| Provides the request method. | |
| getHttpHeaders () | |
| Provides all HTTP headers of the request. | |
| getHttpHeaderValue ($header) | |
| Provides a single HTTP header value. | |
| usesSsl () | |
| Whether the request was sent through a secure connection. | |
| isAjax () | |
| Determines if a request was sent via ajax. | |
| getHost () | |
| Provides the host this request was directed at. | |
| getUrl ($includeQueryString=true) | |
| Provides the requested URL. | |
| getClientInformation () | |
| Provides the client information extracted from HTTP headers. | |
| getRequestDateTime () | |
| Provides the datetime the request was received. | |
| getCookies () | |
| Provides all cookies sent with the request. | |
| getCookieValue ($cookie) | |
| Provides a single cookie sent with the request. | |
| getGetValues () | |
| Provides the GET parameters of this request. | |
| getGetValue ($name) | |
| Provides a single GET parameter value sent with the request. | |
| getPostValues () | |
| Provides the POST parameters of this request. | |
| getPostValue ($name) | |
| Provides a single PAST parameter value sent with the request. | |
| getUploadedFiles () | |
| Provides the all files that have been uploaded. | |
| getUploadedFile ($name) | |
| Provides a single file that has been uploaded. | |
Public Attributes | |
| const | REQUEST_UNKNOWN = 0 |
| Unknown request type. | |
| const | REQUEST_GET = 1 |
| Http Get request. | |
| const | REQUEST_POST = 2 |
| Http Post request. | |
| const | REQUEST_HEAD = 4 |
| Http Head request. | |
| const | REQUEST_PUT = 8 |
| Http Put request. | |
| const | HTTP_VERSION_UNKNOWN = 0 |
| Unknown http version. | |
| const | HTTP_VERSION_1_0 = 1 |
| Http version 1.0. | |
| const | HTTP_VERSION_1_1 = 2 |
| Http version 1.1. | |
Definition at line 6 of file IHttpRequest.interface.php.
| spunQ_IHttpRequest::getClientInformation | ( | ) |
Provides the client information extracted from HTTP headers.
Please note that all client information is unsafe, HTTP headers can be set arbitrarily by the requestor.
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getCookies | ( | ) |
Provides all cookies sent with the request.
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getCookieValue | ( | $ | cookie | ) |
Provides a single cookie sent with the request.
| $cookie | Name of the cookie to be retrieved. |
NULL if no such cookie was received. Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getGetValue | ( | $ | name | ) |
Provides a single GET parameter value sent with the request.
| $name | Name of the parameter to be retrieved. |
NULL if no such parameter was received. Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getGetValues | ( | ) |
Provides the GET parameters of this request.
These are the parameters passed as the query string of the URL.
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getHost | ( | ) |
Provides the host this request was directed at.
NULL if the IP address was used (and accepted by the web server). Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getHttpHeaders | ( | ) |
Provides all HTTP headers of the request.
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getHttpHeaderValue | ( | $ | header | ) |
Provides a single HTTP header value.
NULL if no such header was received. Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getHttpVersion | ( | ) |
Provides the http version used for the request.
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getPostValue | ( | $ | name | ) |
Provides a single PAST parameter value sent with the request.
| $name | Name of the parameter to be retrieved. |
NULL if no such parameter was received. Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getPostValues | ( | ) |
Provides the POST parameters of this request.
These are the parameters passed as the query string of the URL.
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getRequestDateTime | ( | ) |
Provides the datetime the request was received.
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getRequestMethod | ( | ) |
Provides the request method.
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getUploadedFile | ( | $ | name | ) |
Provides a single file that has been uploaded.
| $name | Name of the file upload field to retrieve |
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getUploadedFiles | ( | ) |
Provides the all files that have been uploaded.
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::getUrl | ( | $ | includeQueryString = true |
) |
Provides the requested URL.
| $includeQueryString | The function will remove the query string if this is passed as false. |
Implemented in spunQ_CurrentHttpRequest.
| spunQ_IHttpRequest::isAjax | ( | ) |
| spunQ_IHttpRequest::usesSsl | ( | ) |
Whether the request was sent through a secure connection.
Implemented in spunQ_CurrentHttpRequest.
1.5.9