| 143 | } |
| 144 | |
| 145 | uint16_t |
| 146 | Url::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 | |
| 156 | void |
| 157 | Url::setPath(const std::string &path) |
no test coverage detected