Due to commit 8308b9bd2d ("net/http: Add the HTTP/1.1 API")
every user of CONFIG_HTTP_PARSER would need to add CONFIG_HTTP to
their .conf files. Which is fine for intree samples/tests as they
have been adjusted, but the rest of world working on Zephyr apps
will need to make this changes as well.
Instead, we should have each of the following select HTTP instead of
depend on it, which will make future use of these configs and their
dependencies more intuitive:
HTTP_SERVER
HTTP_CLIENT
HTTP_PARSER
NOTE: As cleanup, this commit also removes the CONFIG_HTTP added to
samples and test .conf files.
Change-Id: I81cfaa19e37333b1bf98778f8147814780e7f77c
Signed-off-by: Michael Scott <michael.scott@linaro.org>
55 lines
1007 B
Plaintext
55 lines
1007 B
Plaintext
# Copyright (c) 2016 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
config HTTP
|
|
bool
|
|
prompt "HTTP support"
|
|
default n
|
|
help
|
|
This option enables the HTTP library
|
|
|
|
config HTTP_SERVER
|
|
bool
|
|
prompt "HTTP server support"
|
|
default n
|
|
select HTTP
|
|
help
|
|
Enables HTTP server routines
|
|
|
|
config HTTP_HEADER_FIELD_ITEMS
|
|
int
|
|
prompt "HTTP header field max number of items"
|
|
depends on HTTP_SERVER
|
|
default 8
|
|
help
|
|
Number of HTTP header field items that an HTTP server
|
|
application will handle
|
|
|
|
config HTTP_CLIENT
|
|
bool
|
|
prompt "HTTP client support"
|
|
default n
|
|
select HTTP
|
|
help
|
|
Enables HTTP client routines
|
|
|
|
config HTTP_PARSER
|
|
bool
|
|
prompt "HTTP Parser support"
|
|
default n
|
|
select HTTP
|
|
help
|
|
This option enables the http_parser library from nodejs.
|
|
This parser requires some string-related routines commonly
|
|
provided by a libc implementation.
|
|
|
|
config HTTP_PARSER_STRICT
|
|
bool
|
|
prompt "HTTP strict parsing"
|
|
default n
|
|
depends on HTTP_PARSER
|
|
help
|
|
This option enables the strict parsing option
|