MCPcopy Create free account
hub / github.com/acl-dev/acl / HttpServletResponse

Method HttpServletResponse

lib_acl_cpp/src/http/HttpServletResponse.cpp:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace acl {
19
20HttpServletResponse::HttpServletResponse(socket_stream& stream)
21: stream_(stream)
22, request_(NULL)
23{
24 dbuf_internal_ = NEW dbuf_guard(1, 100);
25 dbuf_ = dbuf_internal_;
26
27 client_ = new (dbuf_->dbuf_alloc(sizeof(http_client)))
28 http_client(&stream_, false, true);
29 header_ = dbuf_->create<http_header, dbuf_guard*>(dbuf_);
30
31 header_->set_request_mode(false);
32 charset_[0] = 0;
33 safe_snprintf(content_type_, sizeof(content_type_), "text/html");
34 head_sent_ = false;
35}
36
37HttpServletResponse::~HttpServletResponse(void)
38{

Callers

nothing calls this directly

Calls 3

safe_snprintfFunction · 0.85
dbuf_allocMethod · 0.80
dbuf_guardClass · 0.50

Tested by

no test coverage detected