-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/28253/#review62422
-----------------------------------------------------------



3rdparty/libprocess/include/process/http.hpp
<https://reviews.apache.org/r/28253/#comment104472>

    Here's what we'll have if we added join:
    
    parse: takes a __decoded__ query string, construct a key,value map of the 
parameters
    
    join: takes a key,value map of parameters, creates an __encoded__ query 
string.
    
    That's where I find this to be non-intuitive:
    
    ```
    join(parse(query)) == encode(query)
    ```
    
    It seems like only request encoding should deal with constructing an 
encoded query string, is that not the case? Would like to avoid exposing this 
if possible, and if not possible, would like to make this more intuitive.


- Ben Mahler


On Nov. 20, 2014, 12:50 a.m., Cody Maloney wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/28253/
> -----------------------------------------------------------
> 
> (Updated Nov. 20, 2014, 12:50 a.m.)
> 
> 
> Review request for mesos.
> 
> 
> Bugs: MESOS-2132
>     https://issues.apache.org/jira/browse/MESOS-2132
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> This is needed to turn Request objects into http request which we send across 
> the wire. The existing HTTP request sending code expects the query string to 
> be already constructed.
> 
> Ideally people can either just forward the query string they get to send it 
> back across the wire or they can manipulate it using the native C++ datatype 
> (A hashmap), and then have it automatically re-encoded.
> 
> The parsing logic to go from a string to a map is already exists in this 
> header, this just adds the other direction.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/include/process/http.hpp 
> 9cf05acbb724ab9af8010d1788621d37a0e48e86 
>   3rdparty/libprocess/src/http.cpp b00f33339366f5c06b6f20e38c5ae0c23b8a9358 
>   3rdparty/libprocess/src/tests/http_tests.cpp 
> a90e65f77904da0a45e1cc0cc9889ae69354a1a5 
> 
> Diff: https://reviews.apache.org/r/28253/diff/
> 
> 
> Testing
> -------
> 
> make distcheck ubuntu 14.04
> 
> 
> Thanks,
> 
> Cody Maloney
> 
>

Reply via email to