response::response(context &context) : d(new _data(&context.connection())), context_(context), stream_(0), io_mode_(normal), disable_compression_(0), ostream_requested_(0), copy_to_cache_(0), finalized_(0) { set_content_header("text/html"); if(context_.service().cached_settings().service.disable_xpowered_by==false) { set_header("X-Powered-By", CPPCMS_PACKAGE_NAME "/" CPPCMS_PACKAGE_VERSION); } }
_data(context &cntx) : locale(cntx.connection().service().locale()), request(cntx.connection()) { }