summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/mghttpd01/test-http-client.h
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/mghttpd01/test-http-client.h')
-rw-r--r--testsuites/libtests/mghttpd01/test-http-client.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/testsuites/libtests/mghttpd01/test-http-client.h b/testsuites/libtests/mghttpd01/test-http-client.h
index d3e7cdb708..811c790110 100644
--- a/testsuites/libtests/mghttpd01/test-http-client.h
+++ b/testsuites/libtests/mghttpd01/test-http-client.h
@@ -36,7 +36,7 @@ void httpc_init_context(
bool httpc_open_connection(
httpc_context *ctx,
- char *targethost,
+ const char *targethost,
int targetport
);
@@ -45,8 +45,19 @@ bool httpc_close_connection(
);
bool httpc_send_request(
- httpc_context *ctx,
- char *request,
+ const httpc_context *ctx,
+ const char *request,
+ char *response,
+ int responsesize
+);
+
+bool httpc_ws_open_connection(
+ const httpc_context *ctx
+);
+
+bool httpc_ws_send_request(
+ const httpc_context *ctx,
+ const char *request,
char *response,
int responsesize
);