Creates a new #SoupMessageBody.
Appends the data from buffer to body.
Tags body as being complete.
Fills in body's data field with a buffer containing all of the data in body.
Gets the accumulate flag on body.
Gets a glib.bytes.Bytes containing data from body starting at offset.
Handles the #SoupMessageBody part of receiving a chunk of data from the network.
Sets or clears the accumulate flag on body.
Deletes all of the data in body.
Handles the #SoupMessageBody part of writing a chunk of data to the network.
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
#SoupMessageBody represents the request or response body of a class@Message.
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.MessageBody.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).