On Tue, Dec 15, 2009 at 2:42 AM, Dean Michael Berris
<[email protected]> wrote:
> On Tue, Dec 15, 2009 at 12:52 AM, Glyn Matthews <[email protected]> 
> 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

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel

Reply via email to