Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EF3BC1091C for ; Thu, 20 Nov 2014 00:50:19 +0000 (UTC) Received: (qmail 59493 invoked by uid 500); 20 Nov 2014 00:50:19 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 59422 invoked by uid 500); 20 Nov 2014 00:50:19 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 59406 invoked by uid 99); 20 Nov 2014 00:50:19 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 00:50:19 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 95C7A116EC9; Thu, 20 Nov 2014 00:50:18 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4229036441791512407==" MIME-Version: 1.0 Subject: Re: Review Request 28253: Add query string joiner From: "Cody Maloney" To: "Cody Maloney" , "Ben Mahler" , "mesos" Date: Thu, 20 Nov 2014 00:50:18 -0000 Message-ID: <20141120005018.15325.93860@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Cody Maloney" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/28253/ X-Sender: "Cody Maloney" References: <20141120004122.16171.39012@reviews.apache.org> In-Reply-To: <20141120004122.16171.39012@reviews.apache.org> Reply-To: "Cody Maloney" X-ReviewRequest-Repository: mesos-git --===============4229036441791512407== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Nov. 20, 2014, 12:41 a.m., Ben Mahler wrote: > > 3rdparty/libprocess/include/process/http.hpp, lines 415-416 > > > > > > Could you show the context on why you need this? Seems like an unfortuante API, because it's exposing encoding of a subsection of a request. Is this implying that encoding of request queries needs to be done in multiple places? > > > > In general, please write descriptions on your reviews! Helps provide context for the reviewers :) Doesn't need to be done in multiple places, but at the time of just this commit all the methods of sending requests across the network require passing them a constructed/encoded query string. In the following review (https://reviews.apache.org/r/28254/) I add a way to send more generalized responses. - Cody ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28253/#review62303 ----------------------------------------------------------- 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 > > --===============4229036441791512407==--