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

Method SetHostAndPort

src/brpc/uri.cpp:396–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396void URI::SetHostAndPort(const std::string& host) {
397 const char* const host_begin = host.c_str();
398 const char* host_end =
399 SplitHostAndPort(host_begin, host_begin + host.size(), &_port);
400 _host.assign(host_begin, host_end - host_begin);
401}
402
403void URI::SetH2Path(const char* h2_path) {
404 _path.clear();

Callers 3

CallMethodMethod · 0.80
ConsumeHeadersMethod · 0.80
on_headers_completeMethod · 0.80

Calls 4

SplitHostAndPortFunction · 0.85
c_strMethod · 0.45
sizeMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected