Note that the documentation for the http module is out of date!
If you install the module via pecl today, you get v2.4.3 of the module or newer. The API of v2.* is completely different than that shown here. It's very important that you follow the link shown in the documentation here to reach the correct documentation. Hopefully that documentation will appear here on php.net soon.