hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: response.getStatusLine().getStatusCode() shorthand
Date Sat, 19 Dec 2015 17:18:17 GMT
On Sat, 2015-12-19 at 09:08 -0800, Gary Gregory wrote:
> On Sat, Dec 19, 2015 at 9:04 AM, Oleg Kalnichevski <olegk@apache.org> 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.
> 

Probably not.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message