[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 111 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ResponseInterface:: (8 methods):
getStatusCode()
setStatusCode()
getReasonPhrase()
setReasonPhrase()
getEffectiveUrl()
setEffectiveUrl()
json()
xml()
Interface: ResponseInterface - X-Ref
Represents an HTTP response message.getStatusCode() X-Ref |
Gets the response Status-Code. The Status-Code is a 3-digit integer result code of the server's attempt to understand and satisfy the request. return: int Status code. |
setStatusCode($code) X-Ref |
Sets the status code of this response. param: int $code The 3-digit integer result code to set. |
getReasonPhrase() X-Ref |
Gets the response Reason-Phrase, a short textual description of the Status-Code. Because a Reason-Phrase is not a required element in response Status-Line, the Reason-Phrase value MAY be null. Implementations MAY choose to return the default RFC 2616 recommended reason phrase for the response's Status-Code. return: string|null Reason phrase, or null if unknown. |
setReasonPhrase($phrase) X-Ref |
Sets the Reason-Phrase of the response. If no Reason-Phrase is specified, implementations MAY choose to default to the RFC 2616 recommended reason phrase for the response's Status-Code. param: string $phrase The Reason-Phrase to set. |
getEffectiveUrl() X-Ref |
Get the effective URL that resulted in this response (e.g. the last redirect URL). return: string |
setEffectiveUrl($url) X-Ref |
Set the effective URL that resulted in this response (e.g. the last redirect URL). param: string $url Effective URL |
json(array $config = []) X-Ref |
Parse the JSON response body and return the JSON decoded data. param: array $config Associative array of configuration settings used return: mixed Returns the JSON decoded data based on the provided |
xml(array $config = []) X-Ref |
Parse the XML response body and return a \SimpleXMLElement. In order to prevent XXE attacks, this method disables loading external entities. If you rely on external entities, then you must parse the XML response manually by accessing the response body directly. param: array $config Associative array of configuration settings used return: \SimpleXMLElement |
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |