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 719642 - add stream-based APIs to SoupServer
add stream-based APIs to SoupServer
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:01 UTC by Dan Winship
Modified: 2018-09-21 16:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Winship 2013-12-01 14:01:14 UTC
SoupServer needs gio stream-based APIs like SoupSession has
Comment 1 Dan Winship 2014-09-17 13:53:59 UTC
from bug 625645:

> I'd be interested in working on both handling of callbacks when headers are
> received and on adding a GIOStream-based API (bug 719642?). I'd like to start
> with the former, and would appreciate some advice on what the API should look
> like for it, thanks!

I never figured this out for certain, but my idea was that you'd register a handler somehow, and then the handler would be called after got-headers, and the handler would receive a GIOStream of some sort, with its input stream connected to the request body, and the output stream connected to the response body. So if there was a request body, you'd read off the input stream until you got eof, then do whatever processing you needed to do, then set a response status and add response headers, and write the response body to the output stream. Closing the GIOStream would complete the response.
Comment 2 GNOME Infrastructure Team 2018-09-21 16:18:21 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/67.