ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
The RequestInterface represents a HTTP request. More...
Public Member Functions | |
getMethod () | |
Returns the current HTTP method. More... | |
setMethod ($method) | |
Sets the HTTP method. More... | |
getUrl () | |
Returns the request url. More... | |
setUrl ($url) | |
Sets the request url. More... | |
getAbsoluteUrl () | |
Returns the absolute url. More... | |
setAbsoluteUrl ($url) | |
Sets the absolute url. More... | |
getBaseUrl () | |
Returns the current base url. More... | |
setBaseUrl ($url) | |
Sets a base url. More... | |
getPath () | |
Returns the relative path. More... | |
getQueryParameters () | |
Returns the list of query parameters. More... | |
getPostData () | |
Returns the POST data. More... | |
setPostData (array $postData) | |
Sets the post data. More... | |
getRawServerValue ($valueName) | |
Returns an item from the _SERVER array. More... | |
setRawServerData (array $data) | |
Sets the _SERVER array. More... | |
Public Member Functions inherited from Sabre\HTTP\MessageInterface | |
getBodyAsStream () | |
Returns the body as a readable stream resource. More... | |
getBodyAsString () | |
Returns the body as a string. More... | |
getBody () | |
Returns the message body, as it's internal representation. More... | |
setBody ($body) | |
Updates the body resource with a new stream. More... | |
getHeaders () | |
Returns all the HTTP headers as an array. More... | |
hasHeader ($name) | |
Will return true or false, depending on if a HTTP header exists. More... | |
getHeader ($name) | |
Returns a specific HTTP header, based on it's name. More... | |
getHeaderAsArray ($name) | |
Returns a HTTP header as an array. More... | |
setHeader ($name, $value) | |
Updates a HTTP header. More... | |
setHeaders (array $headers) | |
Sets a new set of HTTP headers. More... | |
addHeader ($name, $value) | |
Adds a HTTP header. More... | |
addHeaders (array $headers) | |
Adds a new set of HTTP headers. More... | |
removeHeader ($name) | |
Removes a HTTP header. More... | |
setHttpVersion ($version) | |
Sets the HTTP version. More... | |
getHttpVersion () | |
Returns the HTTP version. More... | |
The RequestInterface represents a HTTP request.
Definition at line 12 of file RequestInterface.php.
Sabre\HTTP\RequestInterface::getAbsoluteUrl | ( | ) |
Returns the absolute url.
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Referenced by Sabre\DAV\Mount\Plugin\httpGet().
Sabre\HTTP\RequestInterface::getBaseUrl | ( | ) |
Returns the current base url.
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Sabre\HTTP\RequestInterface::getMethod | ( | ) |
Returns the current HTTP method.
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Referenced by Sabre\DAV\TestPlugin\beforeMethod(), Sabre\DAV\TemporaryFileFilterPlugin\beforeMethod(), Sabre\DAVACL\Plugin\beforeMethod(), Sabre\DAV\Server\checkPreconditions(), Sabre\HTTP\Client\createCurlSettingsArray(), Sabre\DAV\Server\invokeMethod(), and Sabre\DAV\Locks\Plugin\validateTokens().
Sabre\HTTP\RequestInterface::getPath | ( | ) |
Returns the relative path.
This is being calculated using the base url. This path will not start with a slash, so it will always return something like 'example/path.html'.
If the full path is equal to the base url, this method will return an empty string.
This method will also urldecode the path, and if the url was incoded as ISO-8859-1, it will convert it to UTF-8.
If the path is outside of the base url, a LogicException will be thrown.
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Referenced by Sabre\DAV\TemporaryFileFilterPlugin\beforeMethod(), Sabre\DAVACL\Plugin\beforeMethod(), Sabre\CalDAV\Schedule\Plugin\calendarObjectChange(), Sabre\DAV\Server\checkPreconditions(), Sabre\DAV\Server\getCopyAndMoveInfo(), Sabre\DAV\Server\getIfConditions(), Sabre\DAVACL\Plugin\httpAcl(), Sabre\DAV\CorePlugin\httpCopy(), Sabre\DAV\CorePlugin\httpDelete(), Sabre\DAV\Browser\MapGetToPropFind\httpGet(), Sabre\CardDAV\VCFExportPlugin\httpGet(), Sabre\DAV\CorePlugin\httpGet(), Sabre\CalDAV\ICSExportPlugin\httpGet(), Sabre\DAV\Browser\Plugin\httpGet(), Sabre\CalDAV\Notifications\Plugin\httpGet(), Sabre\DAV\Locks\Plugin\httpLock(), Sabre\CalDAV\Plugin\httpMkCalendar(), Sabre\DAV\CorePlugin\httpMkcol(), Sabre\DAV\CorePlugin\httpMove(), Sabre\DAV\CorePlugin\httpOptions(), Sabre\DAV\PartialUpdate\Plugin\httpPatch(), Sabre\DAV\Browser\Plugin\httpPOST(), Sabre\CalDAV\Schedule\Plugin\httpPost(), Sabre\DAV\Sharing\Plugin\httpPost(), Sabre\CalDAV\SharingPlugin\httpPost(), Sabre\DAV\TemporaryFileFilterPlugin\httpPropfind(), Sabre\DAV\CorePlugin\httpPropFind(), Sabre\DAV\CorePlugin\httpPropPatch(), Sabre\DAV\CorePlugin\httpPut(), Sabre\DAV\CorePlugin\httpReport(), Sabre\DAV\Locks\Plugin\httpUnlock(), Sabre\CalDAV\Schedule\Plugin\outboxRequest(), and Sabre\DAV\Locks\Plugin\validateTokens().
Sabre\HTTP\RequestInterface::getPostData | ( | ) |
Returns the POST data.
This is equivalent to PHP's $_POST superglobal.
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Referenced by Sabre\DAV\Browser\Plugin\httpPOST().
Sabre\HTTP\RequestInterface::getQueryParameters | ( | ) |
Returns the list of query parameters.
This is equivalent to PHP's $_GET superglobal.
Implemented in Sabre\HTTP\RequestDecorator, and Sabre\HTTP\Request.
Referenced by Sabre\DAV\Mount\Plugin\httpGet(), Sabre\CardDAV\VCFExportPlugin\httpGet(), Sabre\CalDAV\ICSExportPlugin\httpGet(), Sabre\DAV\Browser\Plugin\httpGet(), and Sabre\DAV\Browser\Plugin\httpGetEarly().
Sabre\HTTP\RequestInterface::getRawServerValue | ( | $valueName | ) |
Returns an item from the _SERVER array.
If the value does not exist in the array, null is returned.
string | $valueName |
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Referenced by Sabre\DAV\Auth\Backend\Apache\check().
Sabre\HTTP\RequestInterface::getUrl | ( | ) |
Returns the request url.
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Referenced by Sabre\HTTP\Client\createCurlSettingsArray(), Sabre\DAV\Browser\Plugin\httpPOST(), Sabre\DAV\Sharing\Plugin\httpPost(), Sabre\CalDAV\SharingPlugin\httpPost(), Sabre\DAV\CorePlugin\httpReport(), and Sabre\HTTP\Client\send().
Sabre\HTTP\RequestInterface::setAbsoluteUrl | ( | $url | ) |
Sets the absolute url.
string | $url |
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Sabre\HTTP\RequestInterface::setBaseUrl | ( | $url | ) |
Sets a base url.
This url is used for relative path calculations.
The base url should default to /
string | $url |
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Sabre\HTTP\RequestInterface::setMethod | ( | $method | ) |
Sets the HTTP method.
string | $method |
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Sabre\HTTP\RequestInterface::setPostData | ( | array | $postData | ) |
Sets the post data.
This is equivalent to PHP's $_POST superglobal.
This would not have been needed, if POST data was accessible as php://input, but unfortunately we need to special case it.
array | $postData |
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Sabre\HTTP\RequestInterface::setRawServerData | ( | array | $data | ) |
Sets the _SERVER array.
array | $data |
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.
Sabre\HTTP\RequestInterface::setUrl | ( | $url | ) |
Sets the request url.
string | $url |
Implemented in Sabre\HTTP\Request, and Sabre\HTTP\RequestDecorator.