hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpcomponents Wiki] Update of "HttpClientTutorial" by OlegKalnichevski
Date Mon, 30 Mar 2009 13:12:05 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpcomponents Wiki" for change notification.

The following page has been changed by OlegKalnichevski:

  == HTTP execution context ==
-   Maintaining processing state. Persisting state between request executions using local
+     Originally HTTP has been designed as a stateless, response-request oriented protocol.
However, real world applications often need to be able to persist state information through
several logically related request-response exchanges. In order to enable applications to maintain
a processing state HttpClient allows HTTP requests to be executed within a particular execution
context, referred to as HTTP context. Multiple logically related requests can participate
in a logical session if the same context is reused between consecutive requests.        
+     HTTP context functions similarly to java.util.Map. It is simply a collection of arbitrary
named values. Application can populate context attributes prior to a request execution or
examine the context after the execution has been completed. 
+     In the course of HTTP request execution HttpClient adds the following attributes to
the execution context:
+     * '''http.connection''' - HttpConnection instance representing the actual connection
to the target server.
+     * '''http.target_host''' - HttpHost instance representing the connection target.
+     * '''http.proxy_host''' - HttpHost instance representing the connection proxy, if used.
+     * '''http.request''' - HttpRequest instance representing the actual HTTP request.
+     * '''http.response''' - HttpResponse instance representing the actual HTTP response.
+     * '''http.request_sent''' - Boolean object representing the flag indicating whether
the actual request has been fully transmitted to the connection target.
  == HTTP protocol interceptors ==

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

View raw message