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

#include <reply.hpp>

Public Types

enum  status { pending , fail , success }
 

Public Member Functions

 ReplyParser ()
 
void reset ()
 
status consume (Reply &req, const unsigned char input)
 

Private Types

enum  state {
  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 , status_code_start , status_code , status_text_start ,
  status_text , 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 62 of file reply.hpp.

Member Enumeration Documentation

◆ state

Enumerator
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 
status_code_start 
status_code 
status_text_start 
status_text 
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 64 of file reply.hpp.

◆ status

Enumerator
pending 
fail 
success 

Definition at line 90 of file reply.hpp.

Constructor & Destructor Documentation

◆ ReplyParser()

openvpn::HTTP::ReplyParser::ReplyParser ( )
inline

Definition at line 97 of file reply.hpp.

Member Function Documentation

◆ consume()

status openvpn::HTTP::ReplyParser::consume ( Reply req,
const unsigned char  input 
)
inline

Definition at line 109 of file reply.hpp.

Here is the caller graph for this function:

◆ reset()

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

Definition at line 103 of file reply.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ state_

state openvpn::HTTP::ReplyParser::state_
private

Definition at line 388 of file reply.hpp.


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