MCPcopy Create free account
hub / github.com/apache/brpc / Print

Method Print

src/brpc/uri.cpp:299–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void URI::Print(std::ostream& os) const {
300 if (!_host.empty()) {
301 if (!_scheme.empty()) {
302 os << _scheme << "://";
303 } else {
304 os << "http://";
305 }
306 // user_info is passed by Authorization
307 os << _host;
308 if (_port >= 0) {
309 os << ':' << _port;
310 }
311 }
312 PrintWithoutHost(os);
313}
314
315void URI::PrintWithoutHost(std::ostream& os) const {
316 if (_path.empty()) {

Callers 9

TEST_FFunction · 0.45
TESTFunction · 0.45
uri.hFile · 0.45
redis_reply.hFile · 0.45
generate_declarationsFunction · 0.45
generate_parsingFunction · 0.45
generate_serializingFunction · 0.45
generate_registrationFunction · 0.45
GenerateMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TESTFunction · 0.36