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
  Show / Hide Inherited methods, properties and signals
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
Method
Soup.form_decode_multipart (Message msg, String file_control_name, Array filename, Array content_type, Buffer file) : Object
Decodes the "multipart/form-data" request in msg; this is a convenience method for the case when you have a single file upload control in a form.
Soup.Coding
Method
apply (void* input, Number input_length, Boolean done) : Soup.Buffer
Applies coding to input_length bytes of data from input, and returns a new SoupBuffer containing the encoded/decoded data.
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
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.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.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 (Number 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
get_part (Number part, MessageHeaders headers, Buffer body) : Boolean
Gets the indicated body part from multipart.
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
append_form_file (String control_name, String filename, String content_type, Buffer body) : none
Adds a new MIME part containing body to multipart, using specification.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:35:00 GMT+0800 (HKT)