The HttpDeflateStream class
Class synopsis
HttpDeflateStream
class HttpDeflateStream
{
}Class Members
Предопределенные константы
Type | Name | Description |
---|---|---|
int | TYPE_GZIP | gzip encoding |
int | TYPE_ZLIB | zlib AKA deflate encoding |
int | TYPE_RAW | raw deflate encoding |
int | LEVEL_DEF | default compression level |
int | LEVEL_MIN | minimum compression level |
int | LEVEL_MAX | maximum compression level |
int | STRATEGY_DEF | default strategy |
int | STRATEGY_FILT | filtered strategy |
int | STRATEGY_HUFF | Huffman strategy |
int | STRATEGY_RLE | RLE strategy |
int | STRATEGY_FIXED | fixed strategy |
int | FLUSH_NONE | no forced flush |
int | FLUSH_SYNC | synching flush |
int | FLUSH_FULL | full flush |
Примеры
Пример #1 A HttpDeflateStream example
<?php
$stream = new HttpDeflateStream(
HttpDeflateStream::TYPE_GZIP |
HttpDeflateStream::LEVEL_MAX |
HttpDeflateStream::FLUSH_SYNC);
echo $stream->update($data);
echo $stream->finish();
?>
Содержание
- HttpDeflateStream::__construct — HttpDeflateStream class constructor
- HttpDeflateStream::factory — HttpDeflateStream class factory
- HttpDeflateStream::finish — Finalize deflate stream
- HttpDeflateStream::flush — Flush deflate stream
- HttpDeflateStream::update — Update deflate stream
[an error occurred while processing the directive]
- Введение
- Установка и настройка
- Предопределенные константы
- Options usable with the HttpRequest class and request functions
- The HttpDeflateStream class
- The HttpInflateStream class
- The HttpMessage class
- The HttpQueryString class
- The HttpRequest
- The HttpRequestPool class
- The HttpResponse
- HTTP Функции
Коментарии
404 Not Found