Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 1 | /* |
| 2 | include/types/proto_http.h |
| 3 | This file contains HTTP protocol definitions. |
| 4 | |
| 5 | Copyright (C) 2000-2006 Willy Tarreau - w@1wt.eu |
| 6 | |
| 7 | This library is free software; you can redistribute it and/or |
| 8 | modify it under the terms of the GNU Lesser General Public |
| 9 | License as published by the Free Software Foundation, version 2.1 |
| 10 | exclusively. |
| 11 | |
| 12 | This library is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | Lesser General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU Lesser General Public |
| 18 | License along with this library; if not, write to the Free Software |
| 19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ |
| 21 | |
| 22 | #ifndef _TYPES_PROTO_HTTP_H |
| 23 | #define _TYPES_PROTO_HTTP_H |
| 24 | |
Willy Tarreau | e3ba5f0 | 2006-06-29 18:54:54 +0200 | [diff] [blame] | 25 | #include <common/config.h> |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 26 | |
| 27 | /* |
| 28 | * FIXME: break this into HTTP state and TCP socket state. |
| 29 | * See server.h for the other end. |
| 30 | */ |
| 31 | |
| 32 | /* different possible states for the client side */ |
| 33 | #define CL_STHEADERS 0 |
| 34 | #define CL_STDATA 1 |
| 35 | #define CL_STSHUTR 2 |
| 36 | #define CL_STSHUTW 3 |
| 37 | #define CL_STCLOSE 4 |
| 38 | |
| 39 | /* |
| 40 | * FIXME: break this into HTTP state and TCP socket state. |
| 41 | * See client.h for the other end. |
| 42 | */ |
| 43 | |
| 44 | /* different possible states for the server side */ |
| 45 | #define SV_STIDLE 0 |
| 46 | #define SV_STCONN 1 |
| 47 | #define SV_STHEADERS 2 |
| 48 | #define SV_STDATA 3 |
| 49 | #define SV_STSHUTR 4 |
| 50 | #define SV_STSHUTW 5 |
| 51 | #define SV_STCLOSE 6 |
| 52 | |
| 53 | |
| 54 | #endif /* _TYPES_PROTO_HTTP_H */ |
| 55 | |
| 56 | /* |
| 57 | * Local variables: |
| 58 | * c-indent-level: 8 |
| 59 | * c-basic-offset: 8 |
| 60 | * End: |
| 61 | */ |