| 83 | } |
| 84 | |
| 85 | std::string |
| 86 | Url::getPath() const |
| 87 | { |
| 88 | std::string ret_str; |
| 89 | if (isInitialized()) { |
| 90 | int length; |
| 91 | const char *memptr = TSUrlPathGet(state_->hdr_buf_, state_->url_loc_, &length); |
| 92 | if (memptr && length) { |
| 93 | ret_str.assign(memptr, length); |
| 94 | } |
| 95 | LOG_DEBUG("Using path [%s]", ret_str.c_str()); |
| 96 | } |
| 97 | return ret_str; |
| 98 | } |
| 99 | |
| 100 | std::string |
| 101 | Url::getQuery() const |
nothing calls this directly
no test coverage detected