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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwrite(T message, SessionOutputBuffer buffer, java.io.OutputStream outputStream)Serializes an instance ofMessageHeadersto the given output stream.
-
-
-
Method Detail
-
write
void write(T message, SessionOutputBuffer buffer, java.io.OutputStream outputStream) throws java.io.IOException, HttpException
Serializes an instance ofMessageHeadersto the given output stream.- Parameters:
message- HTTP message headbuffer- session output buffer- Throws:
java.io.IOException- in case of an I/O errorHttpException- in case of HTTP protocol violation
-
-