$codes
$codes :
Коды ответов
Респонс
$instance : \Colibri\Web\Response
Синглтон
Instance() : \Colibri\Web\Response
Статический конструктор
NoCache() : \Colibri\Web\Response
Добавить NoCache
ContentType(string $type, string $encoding = false) : \Colibri\Web\Response
Добавить content-type
| string | $type | |
| string | $encoding |
ExpiresAfter(integer $seconds) : \Colibri\Web\Response
Добавить expires
| integer | $seconds |
ExpiresAt(integer $date) : \Colibri\Web\Response
Добавить expires
| integer | $date | дата |
Cache(integer $seconds) : \Colibri\Web\Response
Добавить cache-control и все остальные приблуды
| integer | $seconds | количество секунд |
P3P() : \Colibri\Web\Response
Что то полезное
Redirect(string $url) : \Colibri\Web\Response
Переадресация
| string | $url | url куда нужно переадресовать |
FileTransfer() : \Colibri\Web\Response
Добавить хедер Content-Description: File Transfer
ContentDisposition(string $type, string $name) : \Colibri\Web\Response
Добавить content-disposition
| string | $type | тип запрашеваемого файла |
| string | $name | название файла |
ContentTransferEncoding(string $type = 'binary') : \Colibri\Web\Response
Добавтиь content-transfer-encoding
| string | $type | тип запрашеваемых данных |
Pragma(string $type = 'binary') : \Colibri\Web\Response
Добавить pragma
| string | $type | тип Pragma |
ContentLength(integer $length) : \Colibri\Web\Response
Добавтить content-length
| integer | $length | длина |
CacheControl(string $type) : \Colibri\Web\Response
Добавить cache-control
| string | $type | тип документа (MIME) |