--- parser3/src/include/pa_http.h 2012/03/16 09:24:09 1.7 +++ parser3/src/include/pa_http.h 2013/07/23 09:46:58 1.13 @@ -8,28 +8,16 @@ #ifndef PA_HTTP_H #define PA_HTTP_H -#define IDENT_PA_HTTP_H "$Id: pa_http.h,v 1.7 2012/03/16 09:24:09 moko Exp $" +#define IDENT_PA_HTTP_H "$Id: pa_http.h,v 1.13 2013/07/23 09:46:58 moko Exp $" #include "pa_vstring.h" #include "pa_vint.h" #include "pa_vhash.h" #include "pa_vtable.h" #include "pa_socks.h" +#include "pa_request.h" -#ifdef CYGWIN -#define _GNU_H_WINDOWS32_SOCKETS -// for PASCAL -#include -// SOCKET -typedef u_int SOCKET; -int PASCAL closesocket(SOCKET); -#else -# if defined(WIN32) -# include -# else -# define closesocket close -# endif -#endif +#define HTTP_COOKIES_NAME "cookies" #ifndef DOXYGEN struct File_read_http_result { @@ -38,6 +26,8 @@ struct File_read_http_result { }; #endif +Table* parse_cookies(Request& r, Table *cookies); + char *pa_http_safe_header_name(const char *name); File_read_http_result pa_internal_file_read_http(Request& r,