|
HttpResponse
Represents an HTTP protocol response.
Autogenerated note: this page is automatically generated from embedded documentation in the PHP source. OverviewConstructors
Methods
Fields
Constructor DetailHttpResponsepublic HttpResponse(mixed status_code) Create a new instance of this class
Method Detailis_cacheablepublic void is_cacheable() Tests whether this response is suitable for caching
is_successpublic void is_success() Tests whether the response indicates the request was successful
to_htmlpublic void to_html() Obtain an html representation of this response
to_stringpublic void to_string() Obtain a string representation of this response
Field Detailbodypublic string $body The entity body returned with the response headerspublic array $headers = array() The HTTP headers returned with this response. This is an associative array whose keys are the header name and values are the header values. infopublic array $info = array() Additional information about this response requestpublic HttpRequest $request The request that was responsible for generating this response status_codepublic int $status_code The HTTP status code of the response Generated by PHPDoctor 2RC2 | |
► Sign in to add a comment