projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
tests++
[m6w6/ext-http]
/
tests
/
response004.phpt
1
--TEST--
2
reponse callback
3
--SKIPIF--
4
<?php
5
include "skipif.inc";
6
?>
7
--GET--
8
dummy=1
9
--FILE--
10
<?php
11
12
$r = new http\Env\Response;
13
$r->setCacheControl("public,must-revalidate,max-age=0");
14
$r->setThrottleRate(1, 0.1);
15
ob_start($r);
16
17
echo "foo";
18
echo "bar";
19
20
ob_end_flush();
21
$r->send();
22
--EXPECTHEADERS--
23
Accept-Ranges: bytes
24
Cache-Control: public,must-revalidate,max-age=0
25
ETag: "9ef61f95"
26
--EXPECTF--
27
foobar