diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2021-03-03 15:06:13 +0100 |
---|---|---|
committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2021-03-03 15:31:28 +0100 |
commit | 7033879bcff9a7b1c31c086ed020fc8fa03fcd81 (patch) | |
tree | b6785cdf862eae326a504c756dbd93d25b2dcb03 /tests/forms-test.c | |
parent | d11e8bfa3cd300ca96d5387610a217b0aca87350 (diff) | |
download | libsoup-carlosgc/send_and_read.tar.gz |
session: add soup_session_send_and_read APIscarlosgc/send_and_read
This is convenient API to send a message and read its body into a
GBytes. This should replace the basic APIs since it covers the same use
case, but using a SoupMessage instead of a URI and with ore flexibility.
Diffstat (limited to 'tests/forms-test.c')
-rw-r--r-- | tests/forms-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/forms-test.c b/tests/forms-test.c index 8dbdbe54..052b71d6 100644 --- a/tests/forms-test.c +++ b/tests/forms-test.c @@ -132,7 +132,7 @@ do_hello_test_libsoup (int n, gboolean extra, const char *uri) g_free (encoded); g_datalist_clear (&data); - body = soup_test_session_send (session, msg, NULL, NULL); + body = soup_session_send_and_read (session, msg, NULL, NULL); soup_test_assert_message_status (msg, SOUP_STATUS_OK); g_assert_cmpmem (tests[n].result, strlen (tests[n].result), g_bytes_get_data (body, NULL), g_bytes_get_size (body)); @@ -259,7 +259,7 @@ do_md5_test_libsoup (gconstpointer data) soup_multipart_free (multipart); session = soup_test_session_new (NULL); - body = soup_test_session_send (session, msg, NULL, NULL); + body = soup_session_send_and_read (session, msg, NULL, NULL); soup_test_assert_message_status (msg, SOUP_STATUS_OK); g_assert_cmpmem (md5, strlen (md5), g_bytes_get_data (body, NULL), g_bytes_get_size (body)); |