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

Function print_response

test/doc/http_snippets.cpp:337–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335
336template<class SyncReadStream>
337void
338print_response(SyncReadStream& stream)
339{
340 static_assert(is_sync_read_stream<SyncReadStream>::value,
341 "SyncReadStream type requirements not met");
342
343 // Declare a parser for an HTTP response
344 response_parser<string_body> parser;
345
346 // Read the entire message
347 read(stream, parser);
348
349 // Now print the message
350 std::cout << parser.get() << std::endl;
351}
352
353//]
354

Callers

nothing calls this directly

Calls 2

readFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected