Наша группа в телеграмм для обмена идеями, проектами, мыслями, людьми в сфере ИТ г.Ростова-на-Дону: @it_rostov

The HttpResponse

(Информация о версии неизвестна, возможно, только в SVN)

Обзор классов


HttpResponse {
static void capture ( void )
static int getBufferSize ( void )
static bool getCache ( void )
static string getCacheControl ( void )
static string getContentDisposition ( void )
static string getContentType ( void )
static string getData ( void )
static string getETag ( void )
static string getFile ( void )
static bool getGzip ( void )
static mixed getHeader ([ string $name ] )
static int getLastModified ( void )
static string getRequestBody ( void )
static resource getRequestBodyStream ( void )
static array getRequestHeaders ( void )
static resource getStream ( void )
static double getThrottleDelay ( void )
static string guessContentType ( string $magic_file [, int $magic_mode = MAGIC_MIME ] )
static void redirect ([ string $url [, array $params [, bool $session = false [, int $status ]]]] )
static bool send ([ bool $clean_ob = true ] )
static bool setBufferSize ( int $bytes )
static bool setCache ( bool $cache )
static bool setCacheControl ( string $control [, int $max_age = 0 [, bool $must_revalidate = true ]] )
static bool setContentDisposition ( string $filename [, bool $inline = false ] )
static bool setContentType ( string $content_type )
static bool setData ( mixed $data )
static bool setETag ( string $etag )
static bool setFile ( string $file )
static bool setGzip ( bool $gzip )
static bool setHeader ( string $name [, mixed $value [, bool $replace = true ]] )
static bool setLastModified ( int $timestamp )
static bool setStream ( resource $stream )
static bool setThrottleDelay ( float $seconds )
static bool status ( int $status )
}

Class Members

Свойства

Static Properties
Modifiers Type Name Description
protectedbooleancachewhether caching the response should be attempted
protectedbooleangzipwhether the sent entity should be gzip'ed on the fly
protectedstringeTagthe generated or custom ETag
protectedintegerlastModifiedthe generated or custom timestamp of last modification
protectedstringcacheControlCache-Control setting
protectedstringcontentTypethe Content-Type of the sent entity
protectedstringcontentDispositionthe Content-Disposition of the sent entity
protectedintegerbufferSizethe chunk buffer size used for throttling
protecteddoublethrottleDelaythe seconds to delay when throttling

Предопределенные константы

Type Name Description
integerREDIRECTguess applicable redirect method
integerREDIRECT_PERMpermanent redirect (301 Moved permanently)
integerREDIRECT_FOUNDstandard redirect (302 Found)
integerREDIRECT_POSTredirect applicable to POST requests (303 See other)
integerREDIRECT_PROXYproxy redirect (305 Use proxy)
integerREDIRECT_TEMPtemporary redirect (307 Temporary Redirect)

Содержание


Описание класса httpresponse, примеры использования класса httpresponse.



Смотрите также:
Описание на ru2.php.net
Описание на php.ru

.

Популярное:


Содержание: