| 98 | } |
| 99 | |
| 100 | std::string |
| 101 | Url::getQuery() const |
| 102 | { |
| 103 | std::string ret_str; |
| 104 | if (isInitialized()) { |
| 105 | int length; |
| 106 | const char *memptr = TSUrlHttpQueryGet(state_->hdr_buf_, state_->url_loc_, &length); |
| 107 | if (memptr && length) { |
| 108 | ret_str.assign(memptr, length); |
| 109 | } |
| 110 | LOG_DEBUG("Using query [%s]", ret_str.c_str()); |
| 111 | } |
| 112 | return ret_str; |
| 113 | } |
| 114 | |
| 115 | std::string |
| 116 | Url::getScheme() const |
nothing calls this directly
no test coverage detected