Retry only for https protocol
[elinks.git] / src / protocol / http / http.h
blobdf7a9c9dffbbbcc3f4dde85de71a01a8c80f6e2e
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"
10 struct connection;
11 struct read_buffer;
12 struct socket;
14 /* Macros related to this struct are defined in the http.c. */
15 struct http_version {
16 int major;
17 int minor;
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;
26 int close;
27 int length;
28 int chunk_remaining;
29 int code;
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;
39 #ifdef CONFIG_SSL
40 #define https_protocol_handler http_protocol_handler
41 #else
42 #define https_protocol_handler NULL
43 #endif
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);
51 #endif