Revision 1.4 |
Revision 1.5 |
Line 2 |
Line 2 |
#define HTTP_MESSAGE_H #include "defines.h" 
|
#define HTTP_MESSAGE_H #include "defines.h" 
|
|
#include "buff.h"
|
typedef struct http_message {
|
typedef struct http_message {
|
|
int fdd; /* data fd */
#ifdef USE_TCPCORK
|
int fdp; /* port fd * (i.e. pending request) */
|
int fdp; /* port fd * (i.e. pending request) */
|
int fdd; /* data fd */
|
#else
|
|
BUFF* fdp; /* Transaction I/O buffer */
#endif
|
int simple; /* simple request (i.e. no HTTP/x.y on request line) */ int ka_status; /* keepalive status; see defines.h */
|
int simple; /* simple request (i.e. no HTTP/x.y on request line) */ int ka_status; /* keepalive status; see defines.h */
|
Line 35 |
Line 40 |
int p_eof; /* if [pth_]read/recv returned 0, set this to 1 */ /* r_ for reply message */
|
int p_eof; /* if [pth_]read/recv returned 0, set this to 1 */ /* r_ for reply message */
|
char r_buf[ MAX_BUF_SIZE ];
|
|
char *r_mimes;
|
char *r_mimes;
|
// size_t r_filesize;
|
|
unsigned long r_filesize; int status;
|
unsigned long r_filesize; int status;
|
Line 89 |
Line 92 |
# endif /* HTTP_MESSAGE_H */
|
# endif /* HTTP_MESSAGE_H */
|