2 #ifndef EL__PROTOCOL_HTTP_HTTP_H
3 #define EL__PROTOCOL_HTTP_HTTP_H
5 #include "main/module.h"
6 #include "protocol/http/blacklist.h"
7 #include "protocol/http/post.h"
8 #include "protocol/protocol.h"
14 /* Macros related to this struct are defined in the http.c. */
20 /** connection.info points to this in HTTP and local CGI connections. */
21 struct http_connection_info
{
22 enum blacklist_flags bl_flags
;
23 struct http_version recv_version
;
24 struct http_version sent_version
;
31 struct http_post post
;
34 extern struct module http_protocol_module
;
36 extern protocol_handler_T http_protocol_handler
;
37 extern protocol_handler_T proxy_protocol_handler
;
40 #define https_protocol_handler http_protocol_handler
42 #define https_protocol_handler NULL
45 struct http_connection_info
*init_http_connection_info(struct connection
*conn
, int major
, int minor
, int close
);
46 void http_got_header(struct socket
*, struct read_buffer
*);
48 unsigned char *subst_user_agent(unsigned char *fmt
, unsigned char *version
,
49 unsigned char *sysname
, unsigned char *termsize
);