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

Method doWriteStdStream

test/doc/http_examples.cpp:176–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 }
175
176 void
177 doWriteStdStream()
178 {
179 std::ostringstream os;
180 request<string_body> req;
181 req.version(11);
182 req.method(verb::get);
183 req.target("/");
184 req.insert(field::user_agent, "test");
185 error_code ec;
186 write_ostream(os, req, ec);
187 BEAST_EXPECTS(! ec, ec.message());
188 BEAST_EXPECT(to_string(req) == os.str());
189 }
190
191 void
192 doHEAD()

Callers

nothing calls this directly

Calls 7

write_ostreamFunction · 0.85
methodMethod · 0.80
targetMethod · 0.80
messageMethod · 0.80
versionMethod · 0.45
insertMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected