2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2012-04-06 18:45:52 +02:00
|
|
|
# see misc/tools/kconfig-language.txt.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-14 22:01:08 +02:00
|
|
|
|
|
|
|
config NETUTILS_WEBSERVER
|
|
|
|
bool "uIP web server"
|
|
|
|
default n
|
|
|
|
---help---
|
2012-09-04 18:59:24 +02:00
|
|
|
Enable support for the uIP web server. This tiny web server was
|
|
|
|
from uIP 1.0, but has undergone many changes. It is, however,
|
|
|
|
still referred to as the "uIP" web server.
|
2012-04-14 22:01:08 +02:00
|
|
|
|
|
|
|
if NETUTILS_WEBSERVER
|
2012-09-04 18:59:24 +02:00
|
|
|
|
|
|
|
config NETUTILS_HTTPD_SCRIPT_DISABLE
|
|
|
|
bool "Disable %! scripting"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
This option, if selected, will elide the %! scripting
|
|
|
|
|
2012-09-05 20:03:37 +02:00
|
|
|
config NETUTILS_HTTPD_CGIPATH
|
|
|
|
bool "URL/CGI function mapping"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
This option enables mappings from URLs to call CGI functions. The
|
|
|
|
effect is that the existing httpd_cgi_register() interface can be
|
|
|
|
used thus:
|
|
|
|
|
|
|
|
const static struct httpd_cgi_call a[] = {
|
|
|
|
{ NULL, "/abc", cgi_abc },
|
|
|
|
{ NULL, "/xyz", cgi_xyz }
|
|
|
|
};
|
|
|
|
|
|
|
|
for (i = 0; i < sizeof a / sizeof *a; i++) {
|
|
|
|
httpd_cgi_register(&a[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
Where (under CONFIG_NETUTILS_HTTPD_CGIPATH) the "/xyz" is a URL path,
|
|
|
|
rather than a %! xyz style call in the existing manner.
|
|
|
|
|
|
|
|
This is useful when CONFIG_NETUTILS_HTTPD_SCRIPT_DISABLE is defined.
|
|
|
|
|
|
|
|
In other words, this provides a way to get your CGI functions called
|
|
|
|
without needing the scripting language. I'm using this to provide a
|
|
|
|
REST style interface over HTTP, where my CGI handlers just return a
|
|
|
|
HTTP status code with a content length of 0.
|
|
|
|
|
2012-09-04 20:01:54 +02:00
|
|
|
config NETUTILS_HTTPD_SERVERHEADER_DISABLE
|
2012-09-04 18:59:24 +02:00
|
|
|
bool "Disabled the SERVER header"
|
|
|
|
default n
|
|
|
|
---help---
|
2012-09-04 20:01:54 +02:00
|
|
|
This option, if selected, will elide the Server\: header
|
2012-09-04 18:59:24 +02:00
|
|
|
|
|
|
|
config NETUTILS_HTTPD_MMAP
|
|
|
|
bool "File mmap-ing"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Replaces standard uIP server file open operations with mmap-ing operations.
|
|
|
|
|
2012-04-14 22:01:08 +02:00
|
|
|
endif
|