still writing cgi support code
This commit is contained in:
@ -37,11 +37,16 @@ enum qse_htrd_errnum_t
|
||||
|
||||
typedef enum qse_htrd_errnum_t qse_htrd_errnum_t;
|
||||
|
||||
/**
|
||||
* The qse_htrd_option_t type defines various options to
|
||||
* change the behavior of the qse_htrd_t reader.
|
||||
*/
|
||||
enum qse_htrd_option_t
|
||||
{
|
||||
QSE_HTRD_LEADINGEMPTYLINES = (1 << 0),
|
||||
QSE_HTRD_REQUEST = (1 << 1),
|
||||
QSE_HTRD_RESPONSE = (1 << 2)
|
||||
QSE_HTRD_SKIPEMPTYLINES = (1 << 0), /**< skip leading empty lines before the initial line */
|
||||
QSE_HTRD_SKIPINITIALLINE = (1 << 1), /**< skip processing an initial line */
|
||||
QSE_HTRD_REQUEST = (1 << 2), /**< parse input as a request */
|
||||
QSE_HTRD_RESPONSE = (1 << 3) /**< parse input as a response */
|
||||
};
|
||||
|
||||
typedef enum qse_htrd_option_t qse_htrd_option_t;
|
||||
|
@ -114,6 +114,13 @@ struct qse_htre_t
|
||||
|
||||
#define qse_htre_setdiscard(re,v) QSE_BLOCK((re)->discard = (v);)
|
||||
|
||||
typedef int (*qse_htre_header_walker_t) (
|
||||
qse_htre_t* re,
|
||||
const qse_mchar_t* key,
|
||||
const qse_mchar_t* val,
|
||||
void* ctx
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -143,8 +150,15 @@ int qse_htre_setstrfromxstr (
|
||||
const qse_mxstr_t* xstr
|
||||
);
|
||||
|
||||
const qse_mchar_t* qse_htre_gethdrval (
|
||||
qse_htre_t* re, const qse_mchar_t* key
|
||||
const qse_mchar_t* qse_htre_getheaderval (
|
||||
qse_htre_t* re,
|
||||
const qse_mchar_t* key
|
||||
);
|
||||
|
||||
int qse_htre_walkheaders (
|
||||
qse_htre_t* re,
|
||||
qse_htre_header_walker_t walker,
|
||||
void* ctx
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user