HttpResponse
class HttpResponse (View source)
Constants
REDIRECT |
|
REDIRECT_PERM |
|
REDIRECT_FOUND |
|
REDIRECT_POST |
|
REDIRECT_PROXY |
|
REDIRECT_TEMP |
|
Properties
static protected | $cache | ||
static protected | $gzip | ||
static protected | $eTag | ||
static protected | $lastModified | ||
static protected | $cacheControl | ||
static protected | $contentType | ||
static protected | $contentDisposition | ||
static protected | $bufferSize | ||
static protected | $throttleDelay |
Methods
(PECL pecl_http >= 0.12.0)
Set header
(PECL pecl_http >= 0.12.0)
Get header
(PECL pecl_http >= 0.10.0)
Set ETag
(PECL pecl_http >= 0.10.0)
Get ETag
(PECL pecl_http >= 0.12.0)
Set last modified
(PECL pecl_http >= 0.12.0)
Get last modified
(PECL pecl_http >= 0.10.0)
Set content disposition
(PECL pecl_http >= 0.10.0)
Get content disposition
(PECL pecl_http >= 0.10.0)
Set content type
(PECL pecl_http >= 0.10.0)
Get content type
(PECL pecl_http >= 0.13.0)
Guess content type
(PECL pecl_http >= 0.10.0)
Set cache
(PECL pecl_http >= 0.10.0)
Get cache
(PECL pecl_http >= 0.10.0)
Set cache control
(PECL pecl_http >= 0.10.0)
Get cache control
(PECL pecl_http >= 0.10.0)
Set gzip
(PECL pecl_http >= 0.10.0)
Get gzip
(PECL pecl_http >= 0.10.0)
Set throttle delay
(PECL pecl_http >= 0.10.0)
Get throttle delay
(PECL pecl_http >= 0.10.0)
Set buffer size
(PECL pecl_http >= 0.10.0)
Get buffer size
(PECL pecl_http >= 0.10.0)
Set data
(PECL pecl_http >= 0.10.0)
Get data
(PECL pecl_http >= 0.10.0)
Set file
(PECL pecl_http >= 0.10.0)
Get file
(PECL pecl_http >= 0.10.0)
Set stream
(PECL pecl_http >= 0.10.0)
Get Stream
(PECL pecl_http >= 0.10.0)
Send response
(PECL pecl_http >= 0.10.0)
Capture script output
(PECL pecl_http >= 0.10.0)
Redirect
(PECL pecl_http >= 0.12.0)
Send HTTP response status
(PECL pecl_http >= 0.10.0)
Get request headers
(PECL pecl_http >= 0.10.0)
Get request body
(PECL pecl_http >= 0.10.0)
Get request body stream
Details
static bool
setHeader(string $name, mixed $value = null, bool $replace = null)
(PECL pecl_http >= 0.12.0)
Set header
static mixed
getHeader(string $name = null)
(PECL pecl_http >= 0.12.0)
Get header
static bool
setETag(string $etag)
(PECL pecl_http >= 0.10.0)
Set ETag
static string
getETag()
(PECL pecl_http >= 0.10.0)
Get ETag
static bool
setLastModified(int $timestamp)
(PECL pecl_http >= 0.12.0)
Set last modified
static int
getLastModified()
(PECL pecl_http >= 0.12.0)
Get last modified
static bool
setContentDisposition(string $filename, bool $inline = null)
(PECL pecl_http >= 0.10.0)
Set content disposition
static string
getContentDisposition()
(PECL pecl_http >= 0.10.0)
Get content disposition
static bool
setContentType(string $content_type)
(PECL pecl_http >= 0.10.0)
Set content type
static string
getContentType()
(PECL pecl_http >= 0.10.0)
Get content type
static string|false
guessContentType(string $magic_file, int $magic_mode = null)
(PECL pecl_http >= 0.13.0)
Guess content type
static bool
setCache(bool $cache)
(PECL pecl_http >= 0.10.0)
Set cache
static bool
getCache()
(PECL pecl_http >= 0.10.0)
Get cache
static bool
setCacheControl(string $control, int $max_age = null, bool $must_revalidate = null)
(PECL pecl_http >= 0.10.0)
Set cache control
static string
getCacheControl()
(PECL pecl_http >= 0.10.0)
Get cache control
static bool
setGzip(bool $gzip)
(PECL pecl_http >= 0.10.0)
Set gzip
static bool
getGzip()
(PECL pecl_http >= 0.10.0)
Get gzip
static bool
setThrottleDelay(float $seconds)
(PECL pecl_http >= 0.10.0)
Set throttle delay
static float
getThrottleDelay()
(PECL pecl_http >= 0.10.0)
Get throttle delay
static bool
setBufferSize(int $bytes)
(PECL pecl_http >= 0.10.0)
Set buffer size
static int
getBufferSize()
(PECL pecl_http >= 0.10.0)
Get buffer size
static bool
setData(mixed $data)
(PECL pecl_http >= 0.10.0)
Set data
static string
getData()
(PECL pecl_http >= 0.10.0)
Get data
static bool
setFile(string $file)
(PECL pecl_http >= 0.10.0)
Set file
static string
getFile()
(PECL pecl_http >= 0.10.0)
Get file
static bool
setStream(resource $stream)
(PECL pecl_http >= 0.10.0)
Set stream
static resource
getStream()
(PECL pecl_http >= 0.10.0)
Get Stream
static bool
send(bool $clean_ob = null)
(PECL pecl_http >= 0.10.0)
Send response
static void
capture()
(PECL pecl_http >= 0.10.0)
Capture script output
static void
redirect(null|string $url = null, array|null $params = null, null|bool $session = null, null|int $status = null)
(PECL pecl_http >= 0.10.0)
Redirect
static bool
status(int $status)
(PECL pecl_http >= 0.12.0)
Send HTTP response status
static array
getRequestHeaders()
(PECL pecl_http >= 0.10.0)
Get request headers
static string
getRequestBody()
(PECL pecl_http >= 0.10.0)
Get request body
static resource
getRequestBodyStream()
(PECL pecl_http >= 0.10.0)
Get request body stream