2008-06-09 06:50:23 +08:00
|
|
|
/* tinyproxy - A fast light-weight HTTP proxy
|
|
|
|
* Copyright (C) 2008 Robert James Kaes <rjk@wormbytes.ca>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* See 'transparent-proxy.c' for detailed information. */
|
|
|
|
|
|
|
|
#ifndef TINYPROXY_TRANSPARENT_PROXY_H
|
|
|
|
#define TINYPROXY_TRANSPARENT_PROXY_H
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
#ifdef TRANSPARENT_PROXY
|
|
|
|
|
|
|
|
#include "conns.h"
|
|
|
|
#include "hashmap.h"
|
|
|
|
#include "reqs.h"
|
|
|
|
|
2008-12-01 23:01:11 +08:00
|
|
|
extern int do_transparent_proxy (struct conn_s *connptr,
|
2008-12-08 21:39:44 +08:00
|
|
|
hashmap_t hashofheaders,
|
|
|
|
struct request_s *request,
|
2010-08-17 04:36:20 +08:00
|
|
|
struct config_s *config, char **url);
|
2008-06-09 06:50:23 +08:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|