#include <src/rest/parser.hpp>
This class implements Parser class in OTBR-REST which is used to parse the data from read buffer and form a request.
◆ Parser()
otbr::rest::Parser::Parser |
( |
Request * |
aRequest | ) |
|
The constructor of a http request parser instance.
- Parameters
-
[in] | aRequest | A pointer to a request instance. |
◆ Init()
void otbr::rest::Parser::Init |
( |
void |
| ) |
|
This method initializea the http-parser.
◆ Process()
void otbr::rest::Parser::Process |
( |
const char * |
aBuf, |
|
|
size_t |
aLength |
|
) |
| |
This method performs a parse process.
- Parameters
-
[in] | aBuf | A pointer pointing to read buffer. |
[in] | aLength | An integer indicates how much data is to be processed by parser. |
The documentation for this class was generated from the following files: