Struct
SoupMessageBody
Description [src]
struct SoupMessageBody {
const char* data;
goffset length;
}
SoupMessageBody represents the request or response body of a
SoupMessage.
Note that while length always reflects the full length of the
message body, data is normally NULL, and will only be filled in
after soup_message_body_flatten() is called. For client-side
messages, this automatically happens for the response body after it
has been fully read. Likewise, for server-side
messages, the request body is automatically filled in after being read.
As an added bonus, when data is filled in, it is always terminated
with a \0 byte (which is not reflected in length).
Structure members
dataThe data.
lengthLength of
data.
Instance methods
soup_message_body_flatten
Fills in body‘s data field with a buffer containing all of the
data in body.
soup_message_body_got_chunk
Handles the SoupMessageBody part of receiving a chunk of data from
the network.
soup_message_body_wrote_chunk
Handles the SoupMessageBody part of writing a chunk of data to the network.