ServerHttpResponse
Adds server extensions to HttpResponse
.
Value members
Concrete methods
Optionally gets corresponding request.
Optionally gets corresponding request.
The request is not available if server could not read it or the server rejected it before it was read.
- Note
The request is the incoming request before handlers are applied; however, the message entity's input stream is an active object.
Creates new response with supplied file as attachment.
Creates new response with supplied file as attachment.
The Content-Type, Content-Length, and Content-Disposition headers are set accordingly.
- Value Params
- file
attachment
- Returns
new response
Adds deflate
to Content-Encoding header and encodes message body.
Adds deflate
to Content-Encoding header and encodes message body.
- Value Params
- bufferSize
size in bytes of buffer used to encode message body
- Returns
new response
Adds gzip
to Content-Encoding header and encodes message body.
Adds gzip
to Content-Encoding header and encodes message body.
- Value Params
- bufferSize
size in bytes of buffer used to encode message body
- Returns
new response