diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2020-10-09 11:29:11 +0200 |
---|---|---|
committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2020-10-19 14:02:25 +0200 |
commit | 99c19cc27ae837e665ace3c1f0e99cd1088e6c24 (patch) | |
tree | bbb7f7a7a9c9544801c66cf3e543ee3ea93291be /tests/timeout-test.c | |
parent | d5cd7249b20beee01dc26c09ec80f270ef8962fd (diff) | |
download | libsoup-99c19cc27ae837e665ace3c1f0e99cd1088e6c24.tar.gz |
Split SoupMessage into client and server partscarlosgc/split-io
Add SoupServerMessage and move there all the server only functionality.
Diffstat (limited to 'tests/timeout-test.c')
-rw-r--r-- | tests/timeout-test.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/timeout-test.c b/tests/timeout-test.c index 17977434..b3325e42 100644 --- a/tests/timeout-test.c +++ b/tests/timeout-test.c @@ -287,16 +287,15 @@ timeout_finish_message (gpointer msg) static void server_handler (SoupServer *server, - SoupMessage *msg, + SoupServerMessage *msg, const char *path, GHashTable *query, - SoupClientContext *client, gpointer user_data) { - soup_message_set_status (msg, SOUP_STATUS_OK); - soup_message_set_response (msg, "text/plain", - SOUP_MEMORY_STATIC, - "ok\r\n", 4); + soup_server_message_set_status (msg, SOUP_STATUS_OK, NULL); + soup_server_message_set_response (msg, "text/plain", + SOUP_MEMORY_STATIC, + "ok\r\n", 4); if (!strcmp (path, "/slow")) { soup_server_pause_message (server, msg); |