Package org.apache.http.io
Interface HttpMessageWriter<T extends HttpMessage>
- All Known Implementing Classes:
AbstractMessageWriter
,DefaultHttpRequestWriter
,DefaultHttpResponseWriter
,HttpRequestWriter
,HttpResponseWriter
public interface HttpMessageWriter<T extends HttpMessage>
Abstract message writer intended to serialize HTTP messages to an arbitrary
data sink.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Serializes an instance ofHttpMessage
to the underlying data sink.
-
Method Details
-
write
Serializes an instance ofHttpMessage
to the underlying data sink.- Parameters:
message
- HTTP message- Throws:
IOException
- in case of an I/O errorHttpException
- in case of HTTP protocol violation
-