From: Dean M. B. <mik...@gm...> - 2009-12-15 00:52:46
|
On Tue, Dec 15, 2009 at 2:42 AM, Dean Michael Berris <mik...@gm...> wrote: > On Tue, Dec 15, 2009 at 12:52 AM, Glyn Matthews <gly...@gm...> wrote: >> >> >> IMO, we shouldn't be afraid to break backwards compatibility at this stage >> in development if the improvements are really valid. >> > > Indeed. :) > And this is done on 0.5-devel -- I'll just get some sleep and when I wake I'll work on adding HTTPS support on both the client and the server. http://github.com/mikhailberis/cpp-netlib/commit/ec5996d260a9a506a59ecf4539dd4693a089b09a is the commit that breaks backwards compatibility. The recommended usage for the HTTP client now looks like: http::client client_; http::client::request request_("http://foo.bar/"); http::client::response response_ = client_.get(request_); On the server, it looks like this: struct foo { void log(...) {} void operator()( basic_request<tags::http_server> const & request_, basic_response<tags::http_server> & response_ ) { // ... } }; http::server<foo> foo_server; Have a good day everyone, and I hope this helps! -- Dean Michael Berris blog.cplusplus-soup.com | twitter.com/mikhailberis linkedin.com/in/mikhailberis | facebook.com/dean.berris | deanberris.com |