2
2
include/proto/proto_http.h
3
3
This file contains HTTP protocol definitions.
5
Copyright (C) 2000-2007 Willy Tarreau - w@1wt.eu
5
Copyright (C) 2000-2008 Willy Tarreau - w@1wt.eu
7
7
This library is free software; you can redistribute it and/or
8
8
modify it under the terms of the GNU Lesser General Public
9
9
License as published by the Free Software Foundation, version 2.1
58
58
#define HTTP_IS_VER_TOKEN(x) (http_is_ver_token[(unsigned char)(x)])
60
60
int event_accept(int fd);
61
void process_session(struct task *t, struct timeval *next);
62
61
int process_cli(struct session *t);
63
int process_srv(struct session *t);
65
void client_retnclose(struct session *s, const struct chunk *msg);
66
void client_return(struct session *s, const struct chunk *msg);
67
void srv_close_with_err(struct session *t, int err, int finst,
68
int status, const struct chunk *msg);
70
int produce_content(struct session *s);
62
int process_srv_data(struct session *t);
63
int process_srv_conn(struct session *t);
64
int http_process_request(struct session *t, struct buffer *req);
65
int http_process_tarpit(struct session *s, struct buffer *req);
66
int http_process_request_body(struct session *s, struct buffer *req);
67
int process_response(struct session *t);
69
void produce_content(struct session *s, struct buffer *rep);
71
70
int produce_content_stats(struct session *s);
72
71
int produce_content_stats_proxy(struct session *s, struct proxy *px);
73
72
void debug_hdr(const char *dir, struct session *t, const char *start, const char *end);
84
83
int http_find_header2(const char *name, int len,
85
84
const char *sol, struct hdr_idx *idx,
86
85
struct hdr_ctx *ctx);
86
void http_sess_log(struct session *s);
87
void perform_http_redirect(struct session *s, struct stream_interface *si);
88
void http_return_srv_error(struct session *s, struct stream_interface *si);
89
void http_capture_bad_message(struct error_snapshot *es, struct session *s,
90
struct buffer *buf, struct http_msg *msg,
91
struct proxy *other_end);
88
93
#endif /* _PROTO_PROTO_HTTP_H */