Back to Seed Clases

Soup


Classes

Interfaces

Structs

Unions

Enums

Struct Soup.Buffer

Import line: Soup = imports.gi.Soup;
GIR File: Soup-2.4.gir
C documentation: SoupBuffer
Struct : Buffer
A data buffer, generally used to represent a chunk of a
SoupMessageBody.
situations you may need to cast it to guchar or another type.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new Soup.Buffer ()
Create a new Soup.Buffer
Create a new Soup.Buffer
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Soup.ContentSniffer
Method
sniff (Message msg, Buffer buffer, Object params) : String
Soup.Message
Signal
got_chunk (Message self, Buffer object) : none
Soup.Message
Signal
wrote_body_data (Message self, Buffer object) : none
Soup.Message
Method
got_chunk (Buffer chunk) : none
Emits the got_chunk signal, indicating that the IO layer finished
reading a chunk of msg's body.
Soup.Message
Method
wrote_body_data (Buffer chunk) : none
Emits the wrote_body_data signal, indicating that the IO layer
finished writing a portion of msg's body.
Soup.MessageBody
Method
append_buffer (Buffer buffer) : none
Appends the data from buffer to body.
Soup.MessageBody
Method
flatten () : Soup.Buffer
Fills in body's data field with a buffer containing all of the
data in body (plus an additional '\0' byte not counted by body's
length field).
Soup.MessageBody
Method
get_chunk (gint64 offset) : Soup.Buffer
Gets a SoupBuffer containing data from body starting at offset.
Soup.MessageBody
Method
got_chunk (Buffer chunk) : none
Handles the SoupMessageBody part of receiving a chunk of data from
the network.
Soup.MessageBody
Method
wrote_chunk (Buffer chunk) : none
Handles the SoupMessageBody part of writing a chunk of data to the
network.
Soup.Multipart
Method
append_form_file (String control_name, String filename, String content_type, Buffer body) : none
Adds a new MIME part containing body to multipart, using
"Content-Disposition: form-data", as per the HTML forms
specification.
Soup.Multipart
Method
append_part (MessageHeaders headers, Buffer body) : none
Adds a new MIME part to multipart with the given headers and body.
Soup.Multipart
Method
get_part (gint32 part, MessageHeaders headers, Buffer body) : gboolean
Gets the indicated body part from multipart.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:16:55 GMT+0800 (HKT)