PreEncodedHttpField

Pre encoded HttpField. <p>A HttpField that will be cached and used many times can be created as a {@link PreEncodedHttpField}, which will use the {@link HttpFieldPreEncoder} instances discovered by the {@link ServiceLoader} to pre-encode the header for each version of HTTP in use. This will save garbage and CPU each time the field is encoded into a response. </p>

Constructors

this
this(HttpHeader header, string name, string value)
Undocumented in source.
this
this(HttpHeader header, string value)
Undocumented in source.
this
this(string name, string value)
Undocumented in source.

Members

Functions

putTo
void putTo(ByteBuffer bufferInFillMode, HttpVersion ver)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From HttpField

getHeader
HttpHeader getHeader()
Undocumented in source. Be warned that the author may not have intended to support it.
getName
string getName()
Undocumented in source. Be warned that the author may not have intended to support it.
getValue
string getValue()
Undocumented in source. Be warned that the author may not have intended to support it.
getIntValue
int getIntValue()
Undocumented in source. Be warned that the author may not have intended to support it.
getLongValue
long getLongValue()
Undocumented in source. Be warned that the author may not have intended to support it.
getValues
string[] getValues()
Undocumented in source. Be warned that the author may not have intended to support it.
contains
bool contains(string search)

Look for a value in a possible multi valued field

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
isSameName
bool isSameName(HttpField field)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
IntValueHttpField
class IntValueHttpField
Undocumented in source.
LongValueHttpField
class LongValueHttpField
Undocumented in source.
isCaseInsensitive
bool isCaseInsensitive()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta