diff options
Diffstat (limited to 'include/parser.h')
-rw-r--r-- | include/parser.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/parser.h b/include/parser.h index f6b748b..b621850 100644 --- a/include/parser.h +++ b/include/parser.h @@ -143,6 +143,11 @@ namespace crow return request{(HTTPMethod)method, std::move(raw_url), std::move(url), std::move(url_params), std::move(headers), std::move(body)}; } + bool is_upgrade() const + { + return upgrade; + } + bool check_version(int major, int minor) const { return http_major == major && http_minor == minor; |