zephyr/tests/net/lib/http_header_fields
Michael Scott 081246737c net/http: let HTTP_SERVER, HTTP_CLIENT and HTTP_PARSER select HTTP
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>
2017-03-17 10:34:45 +02:00
..
src license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Makefile license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
README net: Restructure network protocols 2017-01-02 10:03:19 +01:00
prj.conf net/http: let HTTP_SERVER, HTTP_CLIENT and HTTP_PARSER select HTTP 2017-03-17 10:34:45 +02:00
testcase.ini net: tests: Add platforms whitelist to http header unit test 2017-01-02 10:03:20 +01:00

README

HTTP header fields test
-----------------------

Sample output:

tc_start() - HTTP header fields test
[PASS] test_preserve_data
[PASS] test_parse_url
[PASS] test_method_str
[PASS] test_header_nread_value
[PASS] test_double_content_length_error HTTP_REQUEST
[PASS] test_chunked_content_length_error HTTP_REQUEST
[PASS] test_header_cr_no_lf_error HTTP_REQUEST
[PASS] test_invalid_header_field_token_error HTTP_REQUEST
[PASS] test_invalid_header_field_content_error HTTP_REQUEST
[PASS] test_double_content_length_error HTTP_RESPONSE
[PASS] test_chunked_content_length_error HTTP_RESPONSE
[PASS] test_header_cr_no_lf_error HTTP_RESPONSE
[PASS] test_invalid_header_field_token_error HTTP_RESPONSE
[PASS] test_invalid_header_field_content_error HTTP_RESPONSE

	No errors detected
===================================================================
PASS - main.
===================================================================
PROJECT EXECUTION SUCCESSFUL