You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Gary Gregory <ga...@gmail.com> on 2015/08/27 01:27:00 UTC

org.apache.http.HttpMessage ?

Right now we have:

org.apache.http.HttpMessage<T>

Do we really want to have any kind of object in there or would this be
better:

org.apache.http.HttpMessage<T extends HttpEntity>

?

The above change does not seem to cause compilation problems and tests are
OK, at least in httpcore.

Gary

-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Re: org.apache.http.HttpMessage ?

Posted by Gary Gregory <ga...@gmail.com>.
On Fri, Aug 28, 2015 at 10:26 AM, Oleg Kalnichevski <ol...@apache.org>
wrote:

> On Wed, 2015-08-26 at 16:27 -0700, Gary Gregory wrote:
> > Right now we have:
> >
> > org.apache.http.HttpMessage<T>
> >
> > Do we really want to have any kind of object in there or would this be
> > better:
> >
> > org.apache.http.HttpMessage<T extends HttpEntity>
> >
> > ?
> >
>
> Gary
>
> It was done with HTTP/2 support in mind. Most likely HttpEntity
> interface will no longer work well for HTTP/2 transport. However I would
> still like to have a common message class shared by both HTTP/1.1 and
> HTTP/2 transports.
>

OK, so that sounds like leave it as HttpMessage<T> for now.

Gary


> Oleg
>
>
>
> ---------------------------------------------------------------------
> 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
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Re: org.apache.http.HttpMessage ?

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Wed, 2015-08-26 at 16:27 -0700, Gary Gregory wrote:
> Right now we have:
> 
> org.apache.http.HttpMessage<T>
> 
> Do we really want to have any kind of object in there or would this be
> better:
> 
> org.apache.http.HttpMessage<T extends HttpEntity>
> 
> ?
> 

Gary

It was done with HTTP/2 support in mind. Most likely HttpEntity
interface will no longer work well for HTTP/2 transport. However I would
still like to have a common message class shared by both HTTP/1.1 and
HTTP/2 transports.

Oleg



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