soup-message-io: use gio streams rather than SoupSocket
authorDan Winship <danw@gnome.org>
Wed, 8 Dec 2010 14:56:37 +0000 (15:56 +0100)
committerDan Winship <danw@gnome.org>
Wed, 18 Apr 2012 01:26:17 +0000 (21:26 -0400)
commitc0414594616131e082e87b78b41542be6785158a
tree4f1c8d0956e59e7ee241519befd3bd82b85e5388
parent6b9cbd9736486821d189aeaed1e8d327aed2b2a7
soup-message-io: use gio streams rather than SoupSocket

Use the socket's input/output streams for the base I/O, and add new
SoupBodyInputStream and SoupBodyOutputStream that can be created from
them to handle the body of a single message (including handling
chunked encoding/decoding).

Update chunk-test, which was assuming that the chunk_allocator
callback would never be called if the message had a 0-length body;
that's no longer true.
libsoup/Makefile.am
libsoup/soup-body-input-stream.c [new file with mode: 0644]
libsoup/soup-body-input-stream.h [new file with mode: 0644]
libsoup/soup-body-output-stream.c [new file with mode: 0644]
libsoup/soup-body-output-stream.h [new file with mode: 0644]
libsoup/soup-message-io.c
libsoup/soup-socket.c
libsoup/soup-socket.h
po/POTFILES.in
tests/chunk-test.c
tests/connection-test.c