Skip to content

Commit

Permalink
Server.hh: string_view -> std::string_view
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Nov 8, 2024
1 parent 64bbac4 commit e24e1a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions REST/Server.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -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; }

Expand Down

0 comments on commit e24e1a6

Please sign in to comment.