MCPcopy Create free account
hub / github.com/apache/trafficserver / getPort

Method getPort

src/tscpp/api/Url.cc:145–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145uint16_t
146Url::getPort() const
147{
148 uint16_t ret_val = 0;
149 if (isInitialized()) {
150 ret_val = static_cast<uint16_t>(TSUrlPortGet(state_->hdr_buf_, state_->url_loc_));
151 LOG_DEBUG("Got port %d", ret_val);
152 }
153 return ret_val;
154}
155
156void
157Url::setPath(const std::string &path)

Callers 2

findNextHopMethod · 0.45
findNextHopMethod · 0.45

Calls 1

TSUrlPortGetFunction · 0.85

Tested by

no test coverage detected