| 174 | } |
| 175 | |
| 176 | static String |
| 177 | getUri(TSMBuffer buf, TSMLoc url) |
| 178 | { |
| 179 | String uri; |
| 180 | int uriLen; |
| 181 | const char *uriPtr = TSUrlStringGet(buf, url, &uriLen); |
| 182 | if (nullptr != uriPtr && 0 != uriLen) { |
| 183 | uri.assign(uriPtr, uriLen); |
| 184 | TSfree((void *)uriPtr); |
| 185 | } else { |
| 186 | CacheKeyError("failed to get URI"); |
| 187 | } |
| 188 | return uri; |
| 189 | } |
| 190 | |
| 191 | static String |
| 192 | getCanonicalUrl(TSMBuffer buf, TSMLoc url, bool canonicalPrefix, bool provideDefaultKey) |
no test coverage detected