introduce string_view

This commit is contained in:
Chunting Gu
2021-06-17 18:58:53 +08:00
parent 751a3539ae
commit 26bb6b341a
38 changed files with 404 additions and 344 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ public:
// Route a URL to a view.
// The URL should start with "/". E.g., "/instances".
bool Route(const std::string& url, ViewPtr view,
bool Route(string_view url, ViewPtr view,
const Strings& methods = { "GET" });
// Route a URL (as regular expression) to a view.