From e24e1a6c853c0ddd478cfce2272b1e65edfcee6c Mon Sep 17 00:00:00 2001 From: Jens Alfke Date: Fri, 8 Nov 2024 12:57:43 -0800 Subject: [PATCH] Server.hh: string_view -> std::string_view --- REST/Server.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/REST/Server.hh b/REST/Server.hh index c48d0f82d..1407d1418 100644 --- a/REST/Server.hh +++ b/REST/Server.hh @@ -72,7 +72,7 @@ namespace litecore::REST { Requests bearing an incompatible major version in their API-Version header fail. */ struct APIVersion { uint8_t major = 1, minor = 0; - static APIVersion parse(string_view); + static APIVersion parse(std::string_view); }; /** A function that handles a request. */ @@ -82,7 +82,7 @@ namespace litecore::REST { A pattern looks like a path, where "*" can be used as a path component to denote any name that doesn't start with "_". Patterns are tested in the order the handlers are added, and the first match is used.*/ - void addHandler(net::Methods, string_view pattern, APIVersion, Handler); + void addHandler(net::Methods, std::string_view pattern, APIVersion, Handler); int connectionCount() { return _connectionCount; }