Update sync_site.yml
[m6w6/m6w6.github.io] / _posts / 2006-02-03-some-cool-new-features-of-peclhttp.md
1 ---
2 title: Some cool new features of pecl/http
3 author: m6w6
4 tags:
5 - PHP
6 ---
7
8 [PECL::HTTP](http://pecl.php.net/package/pecl_http) version 0.22 has been
9 released this morning, and I want to point at some features which have been
10 added to the extension since I last blogged about it.
11
12 Incremental zlib (de)compressors were added in form of two classes,
13 [HttpDeflateStream](http://dev.iworks.at/ext-http/http-functions.html.gz#HttpDeflateStream) and
14 [HttpInflateStream](http://dev.iworks.at/ext-http/http-functions.html.gz#HttpInflateStream). I hope the names say it all ;)
15
16 Another class, that might seem a bit odd at a quick glance, is
17 [HttpQueryString](http://dev.iworks.at/ext-http/http-functions.html.gz#HttpQueryString). It's a great tool to realize "paging" or
18 sites with lots of rewrite rules AKA "pretty urls".
19
20 The class [HttpMessage](http://dev.iworks.at/ext-http/http-functions.html.gz#HttpMessage) has finally got its iterator interface to move
21 up the message chain in a more convenient way. Messages can now be
22 [detached](http://dev.iworks.at/ext-http/http-functions.html.gz#HttpMessage_detach) and
23 [prepended](http://dev.iworks.at/ext-http/http-functions.html.gz#HttpMessage_prepend) from/to the message chain.
24
25 Thanks to [Ilia](http://ilia.ws) you can now retrieve the raw request and
26 response messages sent resp. received by an
27 [HttpRequest](http://dev.iworks.at/ext-http/http-functions.html.gz#HttpRequest) instance.
28
29 The function [http_build_url](http://dev.iworks.at/ext-http/http-functions.html.gz#http_build_url) is now the most versatile and powerful
30 utility to handle URLs (sorry for the lack of docs). Please [tell
31 me](mailto:mike@iworks.at) if you don't think so ;)
32