| 195 | } |
| 196 | |
| 197 | std::string_view RemoveLeadingSlash(std::string_view key) { |
| 198 | while (!key.empty() && key.front() == kSep) { |
| 199 | key.remove_prefix(1); |
| 200 | } |
| 201 | return key; |
| 202 | } |
| 203 | |
| 204 | Status AssertNoTrailingSlash(std::string_view key) { |
| 205 | if (HasTrailingSlash(key)) { |