2 env response stream message
4 <?php include "skipif.inc"; ?>
6 HTTP_ACCEPT_ENCODING=gzip
12 $r = new http\env\Response;
13 $r->setHeader("foo","bar");
14 $r->setContentEncoding(http\env\Response::CONTENT_ENCODING_GZIP);
15 $r->setBody(new http\message\Body(fopen(__FILE__,"r")));
19 var_dump(stream_get_contents($f));
23 string\(\d+\) "HTTP\/1\.1 200 OK
26 Content-Encoding: gzip
29 Last-Modified: \w+, \d+ \w+ \d{4} \d\d:\d\d:\d\d GMT
30 Transfer-Encoding: chunked