1 #ifndef _REQUEST_H_ 2 #define _REQUEST_H_ 3 #include "first.h" 4 5 #include "server.h" 6 7 typedef enum { 8 HTTP_PARSEOPT_HEADER_STRICT = 1 9 ,HTTP_PARSEOPT_HOST_STRICT = 2 10 ,HTTP_PARSEOPT_HOST_NORMALIZE = 4 11 } http_parseopts_e; 12 13 int http_request_parse(server *srv, connection *con); 14 int http_request_header_finished(server *srv, connection *con); 15 int http_request_host_normalize(buffer *b); 16 17 #endif 18