After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 719641 - add stream-based APIs for request body
add stream-based APIs for request body
Status: RESOLVED OBSOLETE
Product: libsoup
Classification: Core
Component: API
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2013-12-01 14:00 UTC by Dan Winship
Modified: 2018-09-21 16:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Winship 2013-12-01 14:00:00 UTC
SoupSession now has APIs for reading the response body as a GInputStream, but doesn't have APIs for writing the request body as a GOutputStream.

current theory is something like:

  GIOStream *soup_session_send_with_body (SoupSession   *session,
                                          SoupMessage   *msg,
                                          GCancellable  *cancellable,
                                          GError       **error);

First you call g_io_stream_get_output_stream() to get the request stream, write to that, close it, then call g_io_stream_get_input_stream() to get the response stream. Likewise with the async API.
Comment 1 GNOME Infrastructure Team 2018-09-21 16:18:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libsoup/issues/66.