Package org.apache.hc.core5.http.io
Interface HttpMessageWriter<T extends MessageHeaders>
- All Known Implementing Classes:
AbstractMessageWriter,DefaultHttpRequestWriter,DefaultHttpResponseWriter
public interface HttpMessageWriter<T extends MessageHeaders>
Message writer intended to serialize HTTP message head to an output stream.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(T message, SessionOutputBuffer buffer, OutputStream outputStream) Serializes an instance ofMessageHeadersto the given output stream.
-
Method Details
-
write
void write(T message, SessionOutputBuffer buffer, OutputStream outputStream) throws IOException, HttpException Serializes an instance ofMessageHeadersto the given output stream.- Parameters:
message- HTTP message headbuffer- session output buffer- Throws:
IOException- in case of an I/O errorHttpException- in case of HTTP protocol violation
-