From: Michael Wallner Date: Tue, 6 Dec 2005 19:34:33 +0000 (+0000) Subject: - fypo tix X-Git-Tag: RELEASE_0_20_0~50 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=13ec612cc41fb36ca8db4047436b61ae60fb4c67;p=m6w6%2Fext-http - fypo tix - use BigGet instead of Bigget to avoid confusion # thanks Greg --- diff --git a/docs/examples/tutorial.txt b/docs/examples/tutorial.txt index d2a8cf1..1994f9e 100644 --- a/docs/examples/tutorial.txt +++ b/docs/examples/tutorial.txt @@ -346,16 +346,16 @@ class FeedAggregator saveTo('file.bin'); + $bigGet = BigGet::url('http://www.example.com/big_file.bin'); + $bigGet->saveTo('file.bin'); */ -class BiggetRequest extends HttpRequest +class BigGetRequest extends HttpRequest { public $id; } -class Bigget extends HttpRequestPool +class BigGet extends HttpRequestPool { const SIZE = 1048576; @@ -371,13 +371,13 @@ class Bigget extends HttpRequestPool $head = null; if (!isset($headers['Accept-Ranges'])) { - throw new HttpExcpetion("Did not receive an Accept-Ranges header from HEAD $url"); + throw new HttpException("Did not receive an Accept-Ranges header from HEAD $url"); } if (!isset($headers['Content-Length'])) { throw new HttpException("Did not receive a Content-Length header from HEAD $url"); } - $bigget = new Bigget; + $bigget = new BigGet; $bigget->url = $url; $bigget->size = $headers['Content-Length']; return $bigget; @@ -421,7 +421,7 @@ class Bigget extends HttpRequestPool echo "Attaching new request to get range: $offset-$stop\n"; - $req = new BiggetRequest( + $req = new BigGetRequest( $this->url, HttpRequest::METH_GET, array(