Top Description Methods
org.apache.hc.core5.http.nio

public Interface NHttpMessageWriter<T extends org.apache.hc.core5.http.MessageHeaders>

Known Direct Implementers
org.apache.hc.core5.http.impl.nio.AbstractMessageWriter
Imports
java.io.IOException, org.apache.hc.core5.http.HttpException, .MessageHeaders

Message writer intended to serialize HTTP message head to a session buffer.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public void
reset()

Resets the writer.

public void
write(T
HTTP message.
message
,
SessionOutputBuffer
session output buffer.
buffer
)

Writes out the HTTP message head.

Method Detail

resetback to summary
public void reset()

Resets the writer. The writer will be ready to start serializing another HTTP message.

writeback to summary
public void write(T message, SessionOutputBuffer buffer) throws IOException, HttpException

Writes out the HTTP message head.

Parameters
message:T

HTTP message.

buffer:SessionOutputBuffer

session output buffer.

Exceptions
IOException:
in case of an I/O error.
HttpException:
in case the HTTP message is malformed or violates the HTTP protocol.