Embedded TCP/IP stack: fnet_http_config.h Source File

FNET

fnet_http_config.h
1 /**************************************************************************
2 *
3 * Copyright 2011-2016 by Andrey Butok. FNET Community.
4 * Copyright 2008-2010 by Andrey Butok. Freescale Semiconductor, Inc.
5 *
6 ***************************************************************************
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License"); you may
9 * not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 *
20 ***************************************************************************
21 *
22 * FNET HTTP Server configuration file.
23 *
24 ***************************************************************************/
25 
26 /**************************************************************************
27  * !!!DO NOT MODIFY THIS FILE!!!
28  **************************************************************************/
29 
30 #ifndef _FNET_HTTP_CONFIG_H_
31 
32 #define _FNET_HTTP_CONFIG_H_
33 
37 /**************************************************************************/
43 #ifndef FNET_CFG_HTTP
44  #define FNET_CFG_HTTP (0)
45 #endif
46 
47 /**************************************************************************/
54 #ifndef FNET_CFG_HTTP_SESSION_MAX
55  #define FNET_CFG_HTTP_SESSION_MAX (3u)
56 #endif
57 
58 /**************************************************************************/
65 #ifndef FNET_CFG_HTTP_SSI
66  #define FNET_CFG_HTTP_SSI (1)
67 #endif
68 
69 /**************************************************************************/
76 #ifndef FNET_CFG_HTTP_CGI
77  #define FNET_CFG_HTTP_CGI (1)
78 #endif
79 
80 /**************************************************************************/
88 #ifndef FNET_CFG_HTTP_PORT
89  #define FNET_CFG_HTTP_PORT (FNET_HTONS(80u))
90 #endif
91 
92 /**************************************************************************/
98 #ifndef FNET_CFG_HTTP_TLS
99  #define FNET_CFG_HTTP_TLS (0)
100 #endif
101 
102 /**************************************************************************/
110 #ifndef FNET_CFG_HTTP_TLS_PORT
111  #define FNET_CFG_HTTP_TLS_PORT (FNET_HTONS(443u))
112 #endif
113 
114 /**************************************************************************/
122 #ifndef FNET_CFG_HTTP_REQUEST_SIZE_MAX
123  #define FNET_CFG_HTTP_REQUEST_SIZE_MAX (300u)
124 #endif
125 
126 /**************************************************************************/
132 #ifndef FNET_CFG_HTTP_VERSION_MAJOR
133  #define FNET_CFG_HTTP_VERSION_MAJOR (1u)
134 #endif
135 
136 /**************************************************************************/
142 #ifndef FNET_CFG_HTTP_AUTHENTICATION_BASIC
143  #define FNET_CFG_HTTP_AUTHENTICATION_BASIC (0)
144 #endif
145 
146 /**************************************************************************/
153 #ifndef FNET_CFG_HTTP_POST
154  #define FNET_CFG_HTTP_POST (0)
155 #endif
156 
159 #ifdef FNET_CFG_HTTP_MAX
160  #error "FNET_CFG_HTTP_MAX parameter is obsolete. Use FNET_CFG_HTTP."
161 #endif
162 
163 #endif /* _FNET_HTTP_CONFIG_H_ */

© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net