You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Cody Maloney (JIRA)" <ji...@apache.org> on 2015/07/04 19:58:04 UTC
[jira] [Commented] (MESOS-2132) Allow sending http::Request objects
[ https://issues.apache.org/jira/browse/MESOS-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14613989#comment-14613989 ]
Cody Maloney commented on MESOS-2132:
-------------------------------------
Currently mesos http handlers receive an HTTP Request object. If you just want to forward the request with minimal changes (just the path), as the proxy process I was working on does, you need to copy every field out of the structure and pass the members as slightly differently formatted arguments to the http::post, get functions. Making it so those functions can just take an http request object makes it easier to forward requests, as well as cleans up the http get/post API so that rather than a long string of optional parameters, there are just fields ommitted from being set on a struct.
> Allow sending http::Request objects
> -----------------------------------
>
> Key: MESOS-2132
> URL: https://issues.apache.org/jira/browse/MESOS-2132
> Project: Mesos
> Issue Type: Improvement
> Components: libprocess
> Reporter: Cody Maloney
> Assignee: Cody Maloney
> Priority: Minor
> Labels: mesosphere
>
> Currently you can only send a collection of fields which more or less matches those in an http::Request object.
> http::Request objects are used when calling http handlers in libprocess.
> The motivation for being able to send these is then we can forward a request that is recieved.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)