GNOME Bugzilla – Bug 719642
add stream-based APIs to SoupServer
Last modified: 2018-09-21 16:18:21 UTC
SoupServer needs gio stream-based APIs like SoupSession has
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.
-- 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.