Client | Server | |
---|---|---|
Request | prepares headers before a request is sent | interprets headers when a request is received |
Response | interprets headers when a response is received | prepares headers before a response is sent |
{@link org.apache.http.protocol.HttpRequestExecutor HttpRequestExecutor} is a processor for the client side, {@link org.apache.http.protocol.HttpService HttpService} for the server side. On the client side, a {@link org.apache.http.protocol.HttpContext context} is used to tie together a request, the response to it, and other data that might be associated with the request execution. It is passed to the request executor whenever needed.
Information about required and recommended interceptors for the client side will be provided elsewhere. For the time being, please refer to the comments in the example applications or ask on one of the mailing lists.
Note: If you want to develop a server-side application, we recommend that you implement your application as a servlet running in a servlet engine like Tomcat or full-blown JSEE container like Geronimo. If you prefer to implement a server-side application based on our {@link org.apache.http.protocol.HttpService HttpService}, we'll assume that you know what you're doing and that you don't need help in figuring out which interceptors need to be configured.