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

Method doReadStdStream

test/doc/http_examples.cpp:159–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 }
158
159 void
160 doReadStdStream()
161 {
162 std::string const s =
163 "HTTP/1.0 200 OK\r\n"
164 "User-Agent: test\r\n"
165 "\r\n"
166 "Hello, world!";
167 std::istringstream is(s);
168 error_code ec;
169 flat_buffer buffer;
170 response<string_body> res;
171 read_istream(is, buffer, res, ec);
172 BEAST_EXPECTS(! ec, ec.message());
173 BEAST_EXPECT(to_string(res) == s);
174 }
175
176 void
177 doWriteStdStream()

Callers

nothing calls this directly

Calls 2

read_istreamFunction · 0.85
messageMethod · 0.80

Tested by

no test coverage detected