X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=parsers.h;fp=src%2Fparsers.h;h=144c222d154f7c7cf1db562ccd85e5aab44a9d8b;hb=72081f829de368392d04076728f8c991178c0080;hp=5d22442ff3bbd71e8e721c230c3a0f3f7c2e28af;hpb=701f0d2c06084708ab71fe06ded88d4b666dc826;p=privoxy.git diff --git a/src/parsers.h b/parsers.h similarity index 91% rename from src/parsers.h rename to parsers.h index 5d22442f..144c222d 100644 --- a/src/parsers.h +++ b/parsers.h @@ -1,9 +1,9 @@ #ifndef PARSERS_H_INCLUDED #define PARSERS_H_INCLUDED -#define PARSERS_H_VERSION "$Id: parsers.h,v 1.26 2002/05/08 15:59:53 oes Exp $" +#define PARSERS_H_VERSION "$Id: parsers.h,v 1.26.2.1 2002/09/25 14:52:46 oes Exp $" /********************************************************************* * - * File : $Source: /cvsroot/ijbswa/current/parsers.h,v $ + * File : $Source: /cvsroot/ijbswa/current/Attic/parsers.h,v $ * * Purpose : Declares functions to parse/crunch headers and pages. * Functions declared include: @@ -43,6 +43,17 @@ * * Revisions : * $Log: parsers.h,v $ + * Revision 1.26.2.1 2002/09/25 14:52:46 oes + * Added basic support for OPTIONS and TRACE HTTP methods: + * - New parser function client_max_forwards which decrements + * the Max-Forwards HTTP header field of OPTIONS and TRACE + * requests by one before forwarding + * - New parser function client_host which extracts the host + * and port information from the HTTP header field if the + * request URI was not absolute + * - Don't crumble and re-add the Host: header, but only generate + * and append if missing + * * Revision 1.26 2002/05/08 15:59:53 oes * Changed add_to_iob signature (now returns jb_err) * @@ -196,6 +207,9 @@ 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_host_adder (struct client_state *csp); extern jb_err client_cookie_adder (struct client_state *csp);