Server API rework.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <exception>
|
||||
#include <iosfwd>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "webcc/config.h"
|
||||
|
||||
@@ -43,6 +44,14 @@ namespace webcc {
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
using Strings = std::vector<std::string>;
|
||||
|
||||
// Regex sub-matches of the URL (usually resource ID's).
|
||||
// Could also be considered as arguments, so named as UrlArgs.
|
||||
using UrlArgs = std::vector<std::string>;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
const char* const kCRLF = "\r\n";
|
||||
|
||||
const std::size_t kInvalidLength = std::string::npos;
|
||||
|
||||
Reference in New Issue
Block a user