GNU libmicrohttpd  1.0.1
postprocessor.h File Reference

Declarations for parsing POST data. More...

#include "internal.h"
Include dependency graph for postprocessor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MHD_PostProcessor
 

Enumerations

enum  PP_State {
  PP_Error, PP_Done, PP_Init, PP_NextBoundary,
  PP_ProcessKey, PP_ProcessValue, PP_Callback, PP_ProcessEntryHeaders,
  PP_PerformCheckMultipart, PP_ProcessValueToBoundary, PP_PerformCleanup, PP_Nested_Init,
  PP_Nested_PerformMarking, PP_Nested_ProcessEntryHeaders, PP_Nested_ProcessValueToBoundary, PP_Nested_PerformCleanup
}
 
enum  RN_State {
  RN_Inactive = 0, RN_OptN = 1, RN_Full = 2, RN_Dash = 3,
  RN_Dash2 = 4
}
 
enum  NE_State {
  NE_none = 0, NE_content_name = 1, NE_content_type = 2, NE_content_filename = 4,
  NE_content_transfer_encoding = 8
}
 

Detailed Description

Declarations for parsing POST data.

Author
Christian Grothoff
Karlson2k (Evgeny Grin)

Definition in file postprocessor.h.

Enumeration Type Documentation

◆ NE_State

enum NE_State

Bits for the globally known fields that should not be deleted when we exit the nested state.

Enumerator
NE_none 
NE_content_name 
NE_content_type 
NE_content_filename 
NE_content_transfer_encoding 

Definition at line 100 of file postprocessor.h.

◆ PP_State

enum PP_State

States in the PP parser's state machine.

Enumerator
PP_Error 
PP_Done 
PP_Init 
PP_NextBoundary 
PP_ProcessKey 
PP_ProcessValue 
PP_Callback 
PP_ProcessEntryHeaders 
PP_PerformCheckMultipart 
PP_ProcessValueToBoundary 
PP_PerformCleanup 
PP_Nested_Init 
PP_Nested_PerformMarking 
PP_Nested_ProcessEntryHeaders 
PP_Nested_ProcessValueToBoundary 
PP_Nested_PerformCleanup 

Definition at line 34 of file postprocessor.h.

◆ RN_State

enum RN_State
Enumerator
RN_Inactive 

No RN-preprocessing in this state.

RN_OptN 

If the next character is CR, skip it. Otherwise, just go inactive.

RN_Full 

Expect CRLF (and only CRLF). As always, we also expect only LF or only CR.

RN_Dash 

Expect either CRLF or '–'CRLF. If '–'CRLF, transition into dash-state for the main state machine

RN_Dash2 

Got a single dash, expect second dash.

Definition at line 63 of file postprocessor.h.