Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1321)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/slow-response.php

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Addressed comments from kinuko and haraken Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 function put_chunk($txt) {
3 echo sprintf("%x\r\n", strlen($txt));
4 echo "$txt\r\n";
5 }
6
7 header("Content-type: text/html; charset=UTF-8");
8 header("Transfer-encoding: chunked");
9 flush();
10
11 for ($i = 0; $i < 10000; $i++) {
12 put_chunk("$i<br>");
13 ob_flush();
14 flush();
15 usleep(1000000);
16 }
17 echo "0\r\n\r\n";
18
19 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698