HttpGenerator

HttpGenerator. Builds HTTP Messages. <p> If the system property "http.HttpGenerator.STRICT" is set to true, then the generator will strictly pass on the exact strings received from methods and header fields. Otherwise a fast case insensitive string lookup is used that may alter the case and white space of some methods/headers

Constructors

this
this()
Undocumented in source.
this
this(bool sendServerVersion, bool sendXPoweredBy)
Undocumented in source.

Members

Enums

Result
enum Result
Undocumented in source.
State
enum State
Undocumented in source.

Functions

abort
void abort()
Undocumented in source. Be warned that the author may not have intended to support it.
generateRequest
Result generateRequest(HttpRequest metaData, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, bool last)
Undocumented in source. Be warned that the author may not have intended to support it.
generateResponse
Result generateResponse(HttpResponse metaData, bool head, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, bool last)
Undocumented in source. Be warned that the author may not have intended to support it.
getContentPrepared
long getContentPrepared()
Undocumented in source. Be warned that the author may not have intended to support it.
getState
State getState()
Undocumented in source. Be warned that the author may not have intended to support it.
isChunking
bool isChunking()
Undocumented in source. Be warned that the author may not have intended to support it.
isCommitted
bool isCommitted()
Undocumented in source. Be warned that the author may not have intended to support it.
isEnd
bool isEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
isIdle
bool isIdle()
Undocumented in source. Be warned that the author may not have intended to support it.
isNoContent
bool isNoContent()
Undocumented in source. Be warned that the author may not have intended to support it.
isPersistent
bool isPersistent()

@return true if known to be persistent

isState
bool isState(State state)
Undocumented in source. Be warned that the author may not have intended to support it.
isWritten
bool isWritten()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
setPersistent
void setPersistent(bool persistent)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getReasonBuffer
byte[] getReasonBuffer(int code)
Undocumented in source. Be warned that the author may not have intended to support it.
putTo
void putTo(HttpField field, ByteBuffer bufferInFillMode)
Undocumented in source. Be warned that the author may not have intended to support it.
putTo
void putTo(HttpFields fields, ByteBuffer bufferInFillMode)
Undocumented in source. Be warned that the author may not have intended to support it.
setVersion
void setVersion(string serverVersion)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

CHUNK_SIZE
int CHUNK_SIZE;
Undocumented in source.
CONTINUE_100_INFO
HttpResponse CONTINUE_100_INFO;
Undocumented in source.
PROGRESS_102_INFO
HttpResponse PROGRESS_102_INFO;
Undocumented in source.
RESPONSE_500_INFO
HttpResponse RESPONSE_500_INFO;
Undocumented in source.

Meta