Embedded TCP/IP stack
4.7.0
fnet_http_config.h
1
/**************************************************************************
2
*
3
* Copyright 2008-2018 by Andrey Butok. FNET Community.
4
*
5
***************************************************************************
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License"); you may
8
* not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
18
*
19
***************************************************************************
20
*
21
* FNET HTTP Server configuration file.
22
*
23
***************************************************************************/
24
25
/**************************************************************************
26
* !!!DO NOT MODIFY THIS FILE!!!
27
**************************************************************************/
28
29
#ifndef _FNET_HTTP_CONFIG_H_
30
31
#define _FNET_HTTP_CONFIG_H_
32
36
/**************************************************************************/
42
#ifndef FNET_CFG_HTTP_SRV
43
#define FNET_CFG_HTTP_SRV (0)
44
#endif
45
46
/**************************************************************************/
53
#ifndef FNET_CFG_HTTP_SRV_SESSION_MAX
54
#define FNET_CFG_HTTP_SRV_SESSION_MAX (3u)
55
#endif
56
57
/**************************************************************************/
64
#ifndef FNET_CFG_HTTP_SRV_SSI
65
#define FNET_CFG_HTTP_SRV_SSI (1)
66
#endif
67
68
/**************************************************************************/
75
#ifndef FNET_CFG_HTTP_SRV_CGI
76
#define FNET_CFG_HTTP_SRV_CGI (1)
77
#endif
78
79
/**************************************************************************/
87
#ifndef FNET_CFG_HTTP_SRV_PORT
88
#define FNET_CFG_HTTP_SRV_PORT (FNET_HTONS(80u))
89
#endif
90
91
/**************************************************************************/
97
#ifndef FNET_CFG_HTTP_SRV_TLS
98
#define FNET_CFG_HTTP_SRV_TLS (0)
99
#endif
100
101
/**************************************************************************/
109
#ifndef FNET_CFG_HTTP_SRV_TLS_PORT
110
#define FNET_CFG_HTTP_SRV_TLS_PORT (FNET_HTONS(443u))
111
#endif
112
113
/**************************************************************************/
121
#ifndef FNET_CFG_HTTP_SRV_REQUEST_SIZE_MAX
122
#define FNET_CFG_HTTP_SRV_REQUEST_SIZE_MAX (300u)
123
#endif
124
125
/**************************************************************************/
131
#ifndef FNET_CFG_HTTP_SRV_VERSION_MAJOR
132
#define FNET_CFG_HTTP_SRV_VERSION_MAJOR (1u)
133
#endif
134
135
/**************************************************************************/
141
#ifndef FNET_CFG_HTTP_SRV_AUTHENTICATION_BASIC
142
#define FNET_CFG_HTTP_SRV_AUTHENTICATION_BASIC (0)
143
#endif
144
145
/**************************************************************************/
152
#ifndef FNET_CFG_HTTP_SRV_POST
153
#define FNET_CFG_HTTP_SRV_POST (0)
154
#endif
155
158
#if 0
/* Under development */
159
163
/**************************************************************************/
169
#ifndef FNET_CFG_HTTP_CLN
170
#define FNET_CFG_HTTP_CLN (0)
171
#endif
172
173
/**************************************************************************/
181
#ifndef FNET_CFG_HTTP_CLN_PORT
182
#define FNET_CFG_HTTP_CLN_PORT (FNET_HTONS(80u))
183
#endif
184
185
/**************************************************************************/
191
#ifndef FNET_CFG_HTTP_CLN_BUFFER_SIZE
192
#define FNET_CFG_HTTP_CLN_BUFFER_SIZE (500u)
193
#endif
194
196
#endif
/* Under development */
197
198
#ifdef FNET_CFG_HTTP_MAX
199
#error "FNET_CFG_HTTP_MAX parameter is obsolete. Use FNET_CFG_HTTP_SRV."
200
#endif
201
202
#endif
/* _FNET_HTTP_CONFIG_H_ */
© 2005-2020 by Andrej Butok.
http://fnet.sourceforge.net