deleting link spam
converted to 1.6 markup
|Deletions are marked like this.||Additions are marked like this.|
|Line 6:||Line 6:|
|Line 8:||Line 8:|
|Line 10:||Line 10:|
|Line 16:||Line 16:|
|[http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200601.mbox/%3c43DF7810.email@example.com%3e Roger Menday]||[[http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200601.mbox/%3c43DF7810.firstname.lastname@example.org%3e|Roger Menday]]|
|Line 21:||Line 21:|
| * [wiki:Self:UseCases/SingleAsyncRequest single asynchronous request]
* [wiki:Self:UseCases/MultiAsyncRequests multiple asynchronous requests] (pipelining)
| * [[UseCases/SingleAsyncRequest|single asynchronous request]]
* [[UseCases/MultiAsyncRequests|multiple asynchronous requests]] (pipelining)
|Line 27:||Line 27:|
|Unlike the [wiki:Self:UseCases/SingleAsyncRequest single asynchronous request], this use case can not be handled||Unlike the [[UseCases/SingleAsyncRequest|single asynchronous request]], this use case can not be handled|
Use Case: Receive Response While Sending Request
I have to send a big request entity to the server, and expect a big response entity in return.
The server does not wait for the end of the request before starting to send the response.
I want to start receiving the response as soon as possible, not waiting for the request to be send completely.
Otherwise, a lot of data would need to be buffered somewhere along the line.
This use case was contributed by Roger Menday on the user mailing list.
Related / Out of Scope
Unlike the single asynchronous request, this use case can not be handled by a background thread that alternatingly sends and receives. Two threads are needed, one for sending and one for receiving. They have to synchronize with eachother in order to achieve one of the following:
- requests are not sent until the response for the previous one has been processed completely (no pipelining)
- responses are correctly matched to the requests that were sent (pipelining)
This use case provides an intermediate step on the road to implement full support for pipelining.