carllerche/curl-rust — pull request #20 by mcpherrinm (2014-10-25 21:36:22+00:00)
Title: Make Request::new public

I'm writing a library for the Hue api ( http://github.com/mcpherrinm/hue/ ) using curl-rust.

I'd like Request::new to be public so that I can write a higher level abstraction over HTTP that still takes a Method as input. The existing way to create a request is with a get/put/post/delete/etc function call on a Handle, but that means I have to do a match on my enum and call the right method, which all just ends up calling Request::new. I'd like to call it directly.