forked from boostorg/beast
Don't allocate memory to handle obs-fold
This commit is contained in:
1 parent
add95d6ef6
commit
87c6e69d9f
6 files changed
+42
-17
No files matched your search
@@ -60,6 +60,9 @@ namespace http {
|
||||
|
||||
@tparam Derived The derived class type. This is part of the
|
||||
Curiously Recurring Template Pattern interface.
|
||||
|
||||
@note If the parser encounters a field value with obs-fold
|
||||
longer than 4 kilobytes in length, an error is generated.
|
||||
*/
|
||||
template<bool isRequest, class Derived>
|
||||
class basic_parser
|
||||
@@ -68,6 +71,9 @@ class basic_parser
|
||||
template<bool OtherIsRequest, class OtherDerived>
|
||||
friend class basic_parser;
|
||||
|
||||
// limit on the size of the obs-fold buffer
|
||||
static std::size_t constexpr max_obs_fold = 4096;
|
||||
|
||||
// Message will be complete after reading header
|
||||
static unsigned constexpr flagSkipBody = 1<< 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user