1 /* tinyproxy - A fast light-weight HTTP proxy 2 * Copyright (C) 1998 Steven Young <sdyoung@miranda.org> 3 * Copyright (C) 1999 Robert James Kaes <rjkaes@users.sourceforge.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License along 16 * with this program; if not, write to the Free Software Foundation, Inc., 17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 */ 19 20 /* See 'reqs.c' for detailed information. */ 21 22 #ifndef _TINYPROXY_REQS_H_ 23 #define _TINYPROXY_REQS_H_ 24 25 #include "common.h" 26 #include "sock.h" 27 #include "conns.h" 28 29 /* 30 * Port constants for HTTP (80) and SSL (443) 31 */ 32 #define HTTP_PORT 80 33 #define HTTP_PORT_SSL 443 34 35 /* 36 * This structure holds the information pulled from a URL request. 37 */ 38 struct request_s { 39 char *method; 40 char *protocol; 41 42 char *host; 43 uint16_t port; 44 45 char *path; 46 }; 47 48 extern void handle_connection (struct conn_s *, union sockaddr_union* addr); 49 50 #endif 51