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/protocol.h"
19 struct http_connection_info
{
20 enum blacklist_flags bl_flags
;
21 struct http_version recv_version
;
22 struct http_version sent_version
;
29 /* Used by big files upload. */
30 unsigned char *post_data
;
36 extern struct module http_protocol_module
;
38 extern protocol_handler_T http_protocol_handler
;
39 extern protocol_handler_T proxy_protocol_handler
;
42 #define https_protocol_handler http_protocol_handler
44 #define https_protocol_handler NULL
47 struct http_connection_info
*init_http_connection_info(struct connection
*conn
, int major
, int minor
, int close
);
48 void http_got_header(struct socket
*, struct read_buffer
*);
50 unsigned char *subst_user_agent(unsigned char *fmt
, unsigned char *version
,
51 unsigned char *sysname
, unsigned char *termsize
);