Import line: | Soup = imports.gi.Soup; |
GIR File: | Soup-2.4.gir |
C documentation: | SoupBuffer |
Struct : | Buffer |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
data : void*
|
Soup.Buffer | |
length : Number
|
Soup.Buffer |
Method / Constructor | Defined By | |
---|---|---|
new Soup.Buffer
()
Create a new Soup.Buffer
Create a new Soup.Buffer
|
||
Create a new Soup.Buffer
Create a new Soup.Buffer
|
||
Create a new Soup.Buffer
Create a new Soup.Buffer
|
||
new Soup.Buffer.with_owner
(void* data, Number length, void* owner, Function owner_dnotify)
:
Soup.Buffer
Create a new Soup.Buffer
Create a new Soup.Buffer
|
||
copy
()
:
Soup.Buffer
Makes a copy of buffer.
Makes a copy of buffer. In reality, SoupBuffer is a refcounted type, and calling soup_buffer_copy() will normally just increment the refcount on buffer and return it. However, if buffer was created with SOUP_MEMORY_TEMPORARY memory, then soup_buffer_copy() will actually return a copy of it, so that the data in the copy will remain valid after the temporary buffer is freed.
|
Soup.Buffer | |
free
()
:
none
Frees buffer.
Frees buffer. (In reality, as described in the documentation for soup_buffer_copy(), this is actually an "unref" operation, and may or may not actually free buffer.)
|
Soup.Buffer | |
get_data
()
:
Object
to the buffer data is stored here This function exists for use by language bindings, because it's not currently possible to get the right effect by annotating the fields of SoupBuffer.
|
Soup.Buffer | |
get_owner
()
:
void*
Gets the "owner" object for a buffer created with soup_buffer_new_with_owner().
Gets the "owner" object for a buffer created with soup_buffer_new_with_owner().
|
Soup.Buffer |
None |
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 |
Applies coding to input_length bytes of data from input, and returns a new SoupBuffer containing the encoded/decoded data.
|
Soup.ContentSniffer
Method |
|
Soup.Message
Signal |
|
Soup.Message
Signal |
|
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 |
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 |
Adds a new MIME part containing body to multipart, using specification.
|