~ubuntu-branches/ubuntu/utopic/haproxy/utopic-proposed

« back to all changes in this revision

Viewing changes to include/proto/proto_http.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2009-06-26 00:11:01 UTC
  • mfrom: (1.1.6 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090626001101-qo261ke2mjh3d8cn
* New Upstream Version (Closes: #534583).
* Add contrib directory in docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
  include/proto/proto_http.h
3
3
  This file contains HTTP protocol definitions.
4
4
 
5
 
  Copyright (C) 2000-2007 Willy Tarreau - w@1wt.eu
6
 
  
 
5
  Copyright (C) 2000-2008 Willy Tarreau - w@1wt.eu
 
6
 
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)])
59
59
 
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);
64
 
 
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);
69
 
 
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);
 
68
 
 
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);
87
92
 
88
93
#endif /* _PROTO_PROTO_HTTP_H */
89
94