T - The type of HttpRequest.public class DefaultHttpRequestWriter<T extends HttpRequest> extends AbstractMessageWriter<T>
NHttpMessageWriter implementation for HttpRequests.| Constructor and Description |
|---|
DefaultHttpRequestWriter() |
DefaultHttpRequestWriter(Http1Config http1Config,
LineFormatter formatter) |
DefaultHttpRequestWriter(LineFormatter formatter)
Creates an instance of DefaultHttpRequestWriter.
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpVersion |
protocolVersion(T request)
Determines the HTTP protocol version to be communicated to the opposite
endpoint in the message header.
|
protected void |
writeHeadLine(T message,
CharArrayBuffer lineBuf)
Writes out the first line of
HttpMessage. |
reset, writepublic DefaultHttpRequestWriter(Http1Config http1Config, LineFormatter formatter)
public DefaultHttpRequestWriter(LineFormatter formatter)
formatter - the line formatter If null
BasicLineFormatter.INSTANCE will be used.public DefaultHttpRequestWriter()
protected HttpVersion protocolVersion(T request)
protected void writeHeadLine(T message, CharArrayBuffer lineBuf) throws IOException
AbstractMessageWriterHttpMessage.writeHeadLine in class AbstractMessageWriter<T extends HttpRequest>message - HTTP message.IOException - in case of an I/O error.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.