MCPcopy Create free account
hub / github.com/boostorg/beast / doCgiResponse

Method doCgiResponse

test/doc/http_examples.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 void
109 doCgiResponse()
110 {
111 std::string const s = "Hello, world!";
112 test::stream t0{ioc_, s};
113 t0.read_size(3);
114 t0.close_remote();
115 test::stream t1{ioc_}, t1r{ioc_};
116 t1.connect(t1r);
117 error_code ec;
118 send_cgi_response(t0, t1, ec);
119 BEAST_EXPECTS(! ec, ec.message());
120 BEAST_EXPECT(equal_body<false>(t1r.str(), s));
121 }
122
123 void
124 doRelay()

Callers

nothing calls this directly

Calls 4

send_cgi_responseFunction · 0.85
read_sizeMethod · 0.80
messageMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected