aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-02-21 20:12:28 -0800
committerGarrett D'Amore <garrett@damore.org>2018-02-21 20:12:28 -0800
commit65c695fcbfc6d546795e9e54dcd5d6ac52d420a5 (patch)
treeddf8d7d31f1b365992b296923ee711e95298c5d6 /tests
parent3a0ca04110778a56bcd523fbaba2439a61738e03 (diff)
downloadnng-65c695fcbfc6d546795e9e54dcd5d6ac52d420a5.tar.gz
nng-65c695fcbfc6d546795e9e54dcd5d6ac52d420a5.tar.bz2
nng-65c695fcbfc6d546795e9e54dcd5d6ac52d420a5.zip
Modularize HTTP headers somewhat.
We move the HTTP definitions out of the core nng.h and into a supplemental header. Most of this change was trivial updates to all of the HTTP related manual pages.
Diffstat (limited to 'tests')
-rw-r--r--tests/httpclient.c1
-rw-r--r--tests/httpserver.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/httpclient.c b/tests/httpclient.c
index 2438ab4c..7a38ed8d 100644
--- a/tests/httpclient.c
+++ b/tests/httpclient.c
@@ -17,6 +17,7 @@
// Basic HTTP client tests.
#include "core/nng_impl.h"
+#include "supplemental/http/http.h"
#include "supplemental/sha1/sha1.h"
const uint8_t utf8_sha1sum[20] = { 0x54, 0xf3, 0xb8, 0xbb, 0xfe, 0xda, 0x6f,
diff --git a/tests/httpserver.c b/tests/httpserver.c
index e3d7ab25..e24c081f 100644
--- a/tests/httpserver.c
+++ b/tests/httpserver.c
@@ -17,6 +17,7 @@
// Basic HTTP server tests.
#include "core/nng_impl.h"
+#include "supplemental/http/http.h"
const char *doc1 = "<html><body>Someone <b>is</b> home!</body</html>";
const char *doc2 = "This is a text file.";