#ifndef PARSERS_H_INCLUDED
#define PARSERS_H_INCLUDED
-#define PARSERS_H_VERSION "$Id: parsers.h,v 1.38 2007/03/25 14:27:11 fabiankeil Exp $"
+#define PARSERS_H_VERSION "$Id: parsers.h,v 1.39 2007/06/01 16:31:55 fabiankeil Exp $"
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.h,v $
*
* Revisions :
* $Log: parsers.h,v $
+ * Revision 1.39 2007/06/01 16:31:55 fabiankeil
+ * Change sed() to return a jb_err in preparation for forward-override{}.
+ *
* Revision 1.38 2007/03/25 14:27:11 fabiankeil
* Let parse_header_time() return a jb_err code
* instead of a pointer that can only be used to
extern char *get_header_value(const struct list *header_list, const char *header_name);
extern jb_err sed(const struct parsers pats[], const add_header_func_ptr more_headers[], struct client_state *csp);
extern void get_http_time(int time_offset, char *buf);
-extern jb_err parse_header_time(const char *header_time, time_t *result);
extern jb_err get_destination_from_headers(const struct list *headers, struct http_request *http);
-/* XXX: Why do we export these anyway? */
-extern jb_err crumble (struct client_state *csp, char **header);
-extern jb_err connection (struct client_state *csp, char **header);
-extern jb_err filter_header (struct client_state *csp, char **header);
-
-extern jb_err client_referrer (struct client_state *csp, char **header);
-extern jb_err client_uagent (struct client_state *csp, char **header);
-extern jb_err client_ua (struct client_state *csp, char **header);
-extern jb_err client_from (struct client_state *csp, char **header);
-extern jb_err client_send_cookie (struct client_state *csp, char **header);
-extern jb_err client_x_forwarded (struct client_state *csp, char **header);
-extern jb_err client_accept_encoding (struct client_state *csp, char **header);
-extern jb_err client_te (struct client_state *csp, char **header);
-extern jb_err client_max_forwards (struct client_state *csp, char **header);
-extern jb_err client_host(struct client_state *csp, char **header);
-extern jb_err client_if_modified_since(struct client_state *csp, char **header);
-extern jb_err client_accept_language (struct client_state *csp, char **header);
-extern jb_err client_if_none_match (struct client_state *csp, char **header);
-extern jb_err crunch_client_header (struct client_state *csp, char **header);
-extern jb_err client_x_filter (struct client_state *csp, char **header);
-
-
-extern jb_err client_host_adder (struct client_state *csp);
-extern jb_err client_cookie_adder (struct client_state *csp);
-extern jb_err client_xtra_adder (struct client_state *csp);
-extern jb_err client_accept_encoding_adder(struct client_state *csp);
-extern jb_err client_x_forwarded_adder (struct client_state *csp);
-
-extern jb_err connection_close_adder (struct client_state *csp);
-
-extern jb_err server_set_cookie (struct client_state *csp, char **header);
-extern jb_err server_content_type (struct client_state *csp, char **header);
-extern jb_err server_content_length (struct client_state *csp, char **header);
-extern jb_err server_content_md5 (struct client_state *csp, char **header);
-extern jb_err server_content_encoding(struct client_state *csp, char **header);
-extern jb_err server_transfer_coding (struct client_state *csp, char **header);
-extern jb_err server_http (struct client_state *csp, char **header);
-extern jb_err crunch_server_header (struct client_state *csp, char **header);
-extern jb_err server_last_modified (struct client_state *csp, char **header);
-extern jb_err server_content_disposition(struct client_state *csp, char **header);
-
#ifdef FEATURE_FORCE_LOAD
extern int strclean(const char *string, const char *substring);
#endif /* def FEATURE_FORCE_LOAD */