OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::HTTP::RequestParser Class Reference

#include <request.hpp>

Public Types

enum  status { pending , fail , success }
 

Public Member Functions

 RequestParser ()
 
void reset ()
 
status consume (Request &req, const unsigned char input)
 

Private Types

enum  state {
  method_start , method , uri , http_version_h ,
  http_version_t_1 , http_version_t_2 , http_version_p , http_version_slash ,
  http_version_major_start , http_version_major , http_version_minor_start , http_version_minor ,
  expecting_newline_1 , header_line_start , header_lws , header_name ,
  space_before_header_value , header_value , expecting_newline_2 , expecting_newline_3
}
 

Private Attributes

state state_
 

Detailed Description

Definition at line 74 of file request.hpp.

Member Enumeration Documentation

◆ state

Enumerator
method_start 
method 
uri 
http_version_h 
http_version_t_1 
http_version_t_2 
http_version_p 
http_version_slash 
http_version_major_start 
http_version_major 
http_version_minor_start 
http_version_minor 
expecting_newline_1 
header_line_start 
header_lws 
header_name 
space_before_header_value 
header_value 
expecting_newline_2 
expecting_newline_3 

Definition at line 76 of file request.hpp.

◆ status

Enumerator
pending 
fail 
success 

Definition at line 101 of file request.hpp.

Constructor & Destructor Documentation

◆ RequestParser()

openvpn::HTTP::RequestParser::RequestParser ( )
inline

Definition at line 108 of file request.hpp.

Member Function Documentation

◆ consume()

status openvpn::HTTP::RequestParser::consume ( Request req,
const unsigned char  input 
)
inline

Definition at line 120 of file request.hpp.

◆ reset()

void openvpn::HTTP::RequestParser::reset ( )
inline

Definition at line 114 of file request.hpp.

Member Data Documentation

◆ state_

state openvpn::HTTP::RequestParser::state_
private

Definition at line 383 of file request.hpp.


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