Bases: pluggdapps.plugin.Plugin
Plugin to encapsulate HTTP response.
Plugin Init function hooked in by PluginMeta. Initialize plugin with *args and **kwargs parameters.
Response headers are already sent on the connection.
Either a list of byte-string buffered by write() method. Or a generator function created via chunk_generator() method.
A request is considered finished when there is no more response data to be sent for the on-going request. This is typically indicated by flushing the response with finishing=True argument.
Flush callback subscribed using flush() method.
Finish callback subscribed using set_finish_callback() method.
pluggdapps.web.webinterfaces.IHTTPResponse.set_header() interface method.
pluggdapps.web.webinterfaces.IHTTPResponse.add_header() interface method.
pluggdapps.web.webinterfaces.IHTTPResponse.set_trailer() interface method.
pluggdapps.web.webinterfaces.IHTTPResponse.add_trailer() interface method.
pluggdapps.web.webinterfaces.IHTTPResponse.set_cookie() interface method.
pluggdapps.web.webinterfaces.IHTTPResponse.set_secure_cookie() interface method.
pluggdapps.web.webinterfaces.IHTTPResponse.clear_cookie() interface method.
pluggdapps.web.webinterfaces.IHTTPResponse.clear_all_cookies() interface method.
pluggdapps.web.webinterfaces.IHTTPResponse.set_finish_callback() interface method.
pluggdapps.web.webinterfaces.IHTTPResponse.flush() interface method.
pluggdapps.web.webinterfaces.IHTTPResponse.httperror() interface method.
pluggdapps.interfaces.IHTTPResponse.render() interface method.
positional argument,
keyword arguments,
If file keyword argument is passed, this method will resolve the correct renderer plugin based on file-extension. if text keyword argument is passed, better pass the ITemplate argument as well.