Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-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 8017A18688 for ; Sat, 19 Dec 2015 17:09:12 +0000 (UTC) Received: (qmail 79848 invoked by uid 500); 19 Dec 2015 17:09:12 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 79804 invoked by uid 500); 19 Dec 2015 17:09:12 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 79792 invoked by uid 99); 19 Dec 2015 17:09:11 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Dec 2015 17:09:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7BEDBC1454 for ; Sat, 19 Dec 2015 17:09:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ZpQY6_LWfImN for ; Sat, 19 Dec 2015 17:09:01 +0000 (UTC) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 3FC502026F for ; Sat, 19 Dec 2015 17:09:00 +0000 (UTC) Received: by mail-lf0-f41.google.com with SMTP id l133so89550140lfd.2 for ; Sat, 19 Dec 2015 09:09:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=NysD4k95w32MR90muGw/RvQeYf3HtYcFjyVcxdNkOkY=; b=Ixw3arPiz5B7rbSlZYk8vDU4Kdo8GqowcfQ5Pbx95x7TkYn1CVnhZ/kKPqzBm2uOEm 7reDJ3IouT1ebz2xOuI7f1ZIPcB/H3gjaIZn7L51mHOxqHUzQdOgJ3Eezb9ou+Qefhon m/AUejntM0pDjzGh4IyE809OQYcZdr3fsPretZYo0ioSXxR6/zznCfCatJ4UF4FiAb2F r5ulyM0qA2KC3obeMPX+SwDpVmf2SWcYBUKj6VL+D8v4a0omA+MUrosgDEgodMWj3GaR A7Wmr1eUgyPYHQyKJSgX8tApK+tkmc//SeT71dl8AMbI6TKK5ojboW/s2QI68Is0ulWP uvYA== MIME-Version: 1.0 X-Received: by 10.25.39.19 with SMTP id n19mr2790613lfn.156.1450544939571; Sat, 19 Dec 2015 09:08:59 -0800 (PST) Received: by 10.112.200.70 with HTTP; Sat, 19 Dec 2015 09:08:59 -0800 (PST) In-Reply-To: <1450544648.3049.2.camel@apache.org> References: <1450544648.3049.2.camel@apache.org> Date: Sat, 19 Dec 2015 09:08:59 -0800 Message-ID: Subject: Re: response.getStatusLine().getStatusCode() shorthand From: Gary Gregory To: HttpComponents Project Content-Type: multipart/alternative; boundary=001a1141072cdaa5a70527434f1b --001a1141072cdaa5a70527434f1b Content-Type: text/plain; charset=UTF-8 On Sat, Dec 19, 2015 at 9:04 AM, Oleg Kalnichevski wrote: > On Sat, 2015-12-19 at 08:54 -0800, Gary Gregory wrote: > > Hi All, > > > > There are a lot of places where we say: > > > > response.getStatusLine().getStatusCode() > > > > Should we have a short cut > > > > response.getStatusCode() > > HttpResponse#getCode might do as well. > Sounds good. This: > response.getStatusLine().getStatusCode() could also be: > response.getStatusLine().getCode() Since there is only one kind of code in a status line. But I am not sure that's worth it. Thoughts? Gary > > By the way in HTTP/2 there is no longer such thing as a response status > line or a request line, so this problem would likely get resolved in the > course of HTTP/2 development anyway. > > Oleg > > > > > > ? > > > > In Core alone, there are 64 such instances. > > > > Gary > > > > On Sat, Dec 19, 2015 at 8:52 AM, Gary Gregory > > wrote: > > > > > Hi All, > > > > > > There are a lot of places where we say: > > > > > > > > > -- > > > E-Mail: garydgregory@gmail.com | ggregory@apache.org > > > Java Persistence with Hibernate, Second Edition > > > > > > JUnit in Action, Second Edition > > > Spring Batch in Action > > > Blog: http://garygregory.wordpress.com > > > Home: http://garygregory.com/ > > > Tweet! http://twitter.com/GaryGregory > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org > For additional commands, e-mail: dev-help@hc.apache.org > > -- E-Mail: garydgregory@gmail.com | ggregory@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second Edition Spring Batch in Action Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --001a1141072cdaa5a70527434f1b--