1008: upload of big files.
[elinks.git] / src / protocol / http / http.h
blob6337a53eea8785583f124d460e7819ab6920709d
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"
9 struct connection;
10 struct read_buffer;
11 struct socket;
14 struct http_version {
15 int major;
16 int minor;
19 struct http_connection_info {
20 enum blacklist_flags bl_flags;
21 struct http_version recv_version;
22 struct http_version sent_version;
24 int close;
25 int length;
26 int chunk_remaining;
27 int code;
29 /* Used by big files upload. */
30 unsigned char *post_data;
31 int post_fd;
36 extern struct module http_protocol_module;
38 extern protocol_handler_T http_protocol_handler;
39 extern protocol_handler_T proxy_protocol_handler;
41 #ifdef CONFIG_SSL
42 #define https_protocol_handler http_protocol_handler
43 #else
44 #define https_protocol_handler NULL
45 #endif
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);
53 #endif