This package contains the Outbound (Client side) specific interface of the Http channel.
This outbound service context i.e the HttpOutboundServiceContext interface contains methods
for sending the request and receiving the response both synchronously and asynchronously.
The HttpAddress class in this package represents the Http address of the client target.
-
Sending the request headers and the request body.
- send the request headers synchronously
- send the request headers asynchronously
- send the encoded request body synchronously
- send the encoded request body asynchronously
- send the raw request body without any body modifications, such as compression or chunked-encoding, synchronously
- send the raw request body without any body modifications, such as compression or chunked-encoding, asynchronously
-
Receiving the response at two granularities i.e. a single body buffer or the entire body.
Note, body here contains both, message headers and content.
- receive the encoded response body synchronously. If the body is encoded/compressed,
then the encoding is removed and the buffer/buffers returned.
- receive the encoded response body asynchronously.
- receive the raw response body synchronously. This will avoid any
body modifications, such as decompression or removal of chunked-encoding
markers.
- receive the raw response body asynchronously.