Login | Packages | Support | Bugs 

Top Level :: HTTP

pecl_http 2.0.0dev4

Package Information
Summary Extended HTTP Support
Maintainers Michael Wallner <mike@php.net> (lead) [details]
License BSD, revised
Description Extended HTTP support. Again. Keep in mind that it's got the major version 2, because it's incompatible with pecl_http v1.

* Introduces the http namespace.
* Message bodies have been remodeled to use PHP temporary streams instead of in-memory buffers.
* The utterly misunderstood HttpResponse class has been reimplemented as httpEnvResponse inheriting httpMessage.
* Currently, there's only one Exception class left, httpException.
* Errors triggered by the extension can be configured statically by httpObject::$defaultErrorHandling or inherited httpObject->errorHandling.
* The request ecosystem has been modularized to support different libraries, though for the moment only libcurl is supported.
Release notes
Version 2.0.0dev4
(devel)
This is to become v2 of the known pecl_http extension.
It is completely incompatible to previous version.
Try it, or let it be. If you are not sure, let it be. Really.

List of changes (TBD):
* Everything lives below the http namespace
* The message body is implemented as a temp stream instead of a chunk of memory
* The utterly misunderstood HttpResponse class has been reimplemented in the http\env namespace
* There's only http\Exception
* Every instance follows http\Object::$defaultErrorHandling or inherited http\Object->errorHandling, but only for errors generated by the extension itself
* You have to use the http\Request\Factory to create your requests/pools/datashares

[ Download Latest ] [ Changelog ] [ View Statistics ]
[ Browse Source[ Package Bugs ][ View Documentation ]
[ Report new bug ]

Dependencies for release 2.0.0dev4
PRIVACY POLICY | CREDITS
Copyright © 2001-2012 The PHP Group
All rights reserved.
Last updated: Sat Feb 18 19:09:21 2012 UTC
Bandwidth and hardware provided by: pair Networks