const mixinafBedSheet::HttpResponse
afBedSheet::HttpResponse
(Service) - An injectable const version of WebRes.
This is proxied and will always refers to the current web response.
- disableBuffering
- abstract Bool disableBuffering- Set to - trueto disable buffering for this response.- @see BufferedOutStream 
- disableGzip
- abstract Bool disableGzip- Set to - trueto disable gzip compression for this response.- @see GzipOutStream 
- headers
- 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
- abstract Bool isCommitted()- Return true if this response has been commmited. 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. 
- out
- abstract OutStream out()- Returns the - OutStreamfor this response. Should current settings allow, the- OutStreamis automatically gzipped.- @see web::WebRes.out 
- saveAsAttachment
- abstract Void saveAsAttachment(Str fileName)- Directs the client to display a - save asdialog. Sets the- Content-Dispositionhttp response header.- Don't forget to set the - Content-Typeheader too!
- statusCode
- abstract Int statusCode- Get / set the HTTP status code for this response. Setter throws Err if response is already committed.