HttpResponse

HTTP reply class

Members

Aliases

copyTo
alias copyTo = typeof(super).copyTo
Undocumented in source.

Functions

compressWithDeflate
void compressWithDeflate()
Undocumented in source. Be warned that the author may not have intended to support it.
compressWithGzip
void compressWithGzip()
Undocumented in source. Be warned that the author may not have intended to support it.
copyTo
void copyTo(typeof(this) other)
Undocumented in source. Be warned that the author may not have intended to support it.
dup
typeof(this) dup()
Undocumented in source. Be warned that the author may not have intended to support it.
getContent
Data getContent()

If the data is compressed, return the decompressed data

optimizeData
void optimizeData(Headers requestHeaders)

Called by the server to compress content, if possible/appropriate

parseStatusLine
void parseStatusLine(string statusLine)

Initializes this HttpResponse with the given statusLine.

setStatus
void setStatus(HttpStatusCode code)

Set the response status code and message

sliceData
void sliceData(Headers requestHeaders)

Called by the server to apply range request.

Static functions

getStatusMessage
string getStatusMessage(HttpStatusCode code)

Returns the message corresponding to the given HttpStatusCode, or null if the code is unknown.

Variables

compressionLevel
int compressionLevel;

What Zlib compression level to use when compressing the reply. Set to a negative value to disable compression.

status
HttpStatusCode status;

HTTP status code

statusMessage
string statusMessage;

HTTP status message, if one was supplied

Inherited Members

From HttpMessage

protocol
string protocol;
Undocumented in source.
protocolVersion
string protocolVersion;
Undocumented in source.
headers
Headers headers;
Undocumented in source.
data
DataVec data;
Undocumented in source.
creationTime
SysTime creationTime;
Undocumented in source.
age
Duration age [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
copyTo
void copyTo(typeof(this) other)

For dup.

Meta