added more lines for http parsing
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: htb.h 356 2010-09-07 12:29:25Z hyunghwan.chung $
|
||||
* $Id: htb.h 362 2010-10-26 13:01:16Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
@ -444,9 +444,9 @@ void qse_htb_clear (
|
||||
* The qse_htb_walk() function traverses a hash table.
|
||||
*/
|
||||
void qse_htb_walk (
|
||||
qse_htb_t* htb, /**< hash table */
|
||||
qse_htb_t* htb, /**< hash table */
|
||||
qse_htb_walker_t walker, /**< callback function for each pair */
|
||||
void* ctx /**< pointer to user-specific data */
|
||||
void* ctx /**< pointer to user-specific data */
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#include <qse/types.h>
|
||||
#include <qse/macros.h>
|
||||
#include <qse/cmn/htb.h>
|
||||
|
||||
|
||||
typedef struct qse_http_octb_t qse_http_octb_t;
|
||||
@ -69,14 +70,25 @@ struct qse_http_t
|
||||
QSE_HTTP_REQ_POST
|
||||
} method;
|
||||
|
||||
const qse_byte_t* path;
|
||||
const qse_byte_t* args;
|
||||
struct
|
||||
{
|
||||
qse_byte_t* ptr;
|
||||
qse_size_t len;
|
||||
} path;
|
||||
|
||||
struct
|
||||
{
|
||||
qse_byte_t* ptr;
|
||||
qse_size_t len;
|
||||
} args;
|
||||
|
||||
struct
|
||||
{
|
||||
short major;
|
||||
short minor;
|
||||
} version;
|
||||
|
||||
qse_htb_t hdr;
|
||||
} req;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user