From: Dean M. B. <mik...@gm...> - 2008-10-08 22:25:08
|
Hey Guys! Sorry I was out for a bit. Personal health issues aside, I should be back on track. On Wed, Oct 8, 2008 at 4:30 AM, Kim Gräsman <kim...@gm...> wrote: > Hi Glyn, > > On Tue, Oct 7, 2008 at 13:19, Glyn Matthews <gly...@gm...> wrote: >> >> boost::network::uri uri("http//www.boost.org/path"); >> uri << query("x=5") << query("y=6"); >> >> Or: >> boost::network::uri boost_org("http//www.boost.org/"); >> boost::network uri; >> uri << boost_org << path("path") << query_param("x", 5); >> >> I think the directives can be considered as helpers, not really as *the* way >> of building URIs. Building URIs from strings will be most common. > I like this! :D > Nice. I'll play around with it, time permitting. I'm on parental > leave, so my daily schedule is highly dependent on the whims of my > one-year-old :-) Sweet. :) If you need any help on directives, you can look at how I do it with the network::message implementation. One thing we can do is simply use a Boost.Fusion associative sequence (a fusion map) like we do now to build and store the URI parts in the HTTP request's 'uri' method. If you think about it, we just need to generalize the URI parsing and it shouldn't be hard to factor this out. If we can do it real soon (along with fixing the Python server tests) maybe 0.3 will be a more jam-packed release than what I originally envisioned. ;-) -- Dean Michael C. Berris Software Engineer, Friendster, Inc. |