MessageBody
#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 method@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).
Skipped during bindings generation
parameter
data
: Array parameter of type guint8 is not supportedfield
data
: Array parameter of type guint8 is not supported
Constructors
Functions
Appends the data from @buffer to @body.
Gets the accumulate flag on @body.
Atomically increments the reference count of @body by one.
Sets or clears the accumulate flag on @body.
Handles the #SoupMessageBody part of writing a chunk of data to the network.