mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
HttpParser: Add Reset() function (#1210)
This allows reuse of the HttpParser object for multiple requests.
This commit is contained in:
@@ -36,8 +36,19 @@ class HttpParser {
|
||||
*/
|
||||
static uint32_t GetParserVersion();
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* @param type Type of parser (request or response or both)
|
||||
*/
|
||||
explicit HttpParser(Type type);
|
||||
|
||||
/**
|
||||
* Reset the parser to initial state.
|
||||
* This allows reusing the same parser object from request to request.
|
||||
* @param type Type of parser (request or response or both)
|
||||
*/
|
||||
void Reset(Type type);
|
||||
|
||||
/**
|
||||
* Set the maximum accepted length for URLs, field names, and field values.
|
||||
* The default is 1024.
|
||||
|
||||
Reference in New Issue
Block a user