The idea behind HttpRequest/Response is to be usable in filters and handlers on both client and server side. Thus they reside in the core package. These classes are also meant to fix and extend the Request and Response components introduced in JAX-RS 1.x in a BW-compatible way.
Marek
On 12. 8. 2011, at 11:00, Sergey Beryozkin wrote:
> Hi
>
> Newly introduced HttpResponse and HttpRequest classes are in javax.ws.rs.core.
> However they are clearly defined as client-side ones.
>
> Can we get them moved to javax.ws.rs.client ? That will also help to minimize a number of user queries as to why we have
> javax.ws.rs.core.Response and javax.ws.rs.core.HttpResponse
>
> thanks, Sergey
>
>