const mixinafBedSheet::HttpResponse

afBedSheet::HttpResponse

(Service) - An injectable const version of WebRes.

This will always refers to the current web response.

disableBuffering

Source

abstract Bool disableBuffering

Set to true to disable buffering for this response.

disableGzip

Source

abstract Bool disableGzip

Set to true to disable gzip compression for this response.

headers

Source

abstract HttpResponseHeaders headers()

Map of HTTP response headers. You must set all headers before you access out() for the first time, which commits the response. Throws Err if response is already committed.

@see

isCommitted

Source

abstract Bool isCommitted()

Return true if this response has been committed. A committed response has written its response headers, and can no longer modify its status code or headers. A response is committed the first time that out is called.

@see web::WebRes.isCommitted

out

Source

abstract OutStream out()

Returns the OutStream for this response. Should current settings allow, the OutStream is automatically gzipped.

@see web::WebRes.out

saveAsAttachment

Source

abstract Void saveAsAttachment(Str fileName)

Directs the client to display a save as dialog by setting the Content-Disposition HTTP response header.

The Content-Type HTTP response header is set to the MimeType derived from the fileName's extension.

@see HttpResponseHeaders.contentDisposition

statusCode

Source

abstract Int statusCode

Get / set the HTTP status code for this response. Setter throws Err if response is already committed.

@see web::WebRes.statusCode