openthread-br  0.3.0-72c0388
Public Member Functions | List of all members
otbr::rest::Parser Class Reference

#include <src/rest/parser.hpp>

Public Member Functions

 Parser (Request *aRequest)
 
void Init (void)
 
void Process (const char *aBuf, size_t aLength)
 

Detailed Description

This class implements Parser class in OTBR-REST which is used to parse the data from read buffer and form a request.

Constructor & Destructor Documentation

◆ Parser()

otbr::rest::Parser::Parser ( Request aRequest)

The constructor of a http request parser instance.

Parameters
[in]aRequestA pointer to a request instance.

Member Function Documentation

◆ 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]aBufA pointer pointing to read buffer.
[in]aLengthAn integer indicates how much data is to be processed by parser.

The documentation for this class was generated from the following files: