The http\Env\Response class' instances represent the server's current HTTP response.
See http\Message for inherited members.
NULL
string
$contentType# = NULL
string
$contentDisposition# = NULL
int
$contentEncoding# = NULL
string
$cacheControl# = NULL
string
$etag# = NULL
int
$lastModified# = NULL
int
$throttleDelay# = NULL
int
$throttleChunk# = NULL
array
$cookies# = NULL
Create a new env response message instance.
Output buffer handler.
bool
http\Response::__invoke(string
$data[, int
$ob_flags = 0])
Manually test the header $header_name of the environment's request for a cache hit.
int
http\Env\Response::isCachedByEtag([string
$header_name = "If-None-Match"])
Manually test the header $header_name of the environment's request for a cache hit.
int
http\Env\Response::isCachedByLastModified([string
$header_name = "If-Modified-Since"])
Send the response through the SAPI or $stream.
bool
http\Env\Response::send([resource
$stream = NULL
])
Make suggestions to the client how it should cache the response.
http\Env\Response http\Env\Response::setCacheControl(string
$cache_control)
Set the reponse's content disposition parameters.
http\Env\Response http\Env\Response::setContentDisposition(array
$disposition_params)
Enable support for "Accept-Encoding" requests with deflate or gzip.
http\Env\Response http\Env\Response::setContentEncoding(int
$content_encoding)
Set the MIME content type of the response.
http\Env\Response http\Env\Response::setContentType(string
$content_type)
Add cookies to the response to send.
http\Env\Response http\Env\Response::setCookie(mixed
$cookie)
Override the environment's request.
http\Env\Response http\Env\Response::setEnvRequest(http\Message $env_request)
Set a custom ETag.
Set a custom last modified time stamp.
http\Env\Response http\Env\Response::setLastModified(int
$last_modified)
Enable throttling.
http\Env\Response http\Env\Response::setThrottleRate(int
$chunk_size[, float
$delay = 1])