Import line: | Soup = imports.gi.Soup; |
GIR File: | Soup-2.4.gir |
C documentation: | SoupBuffer |
Struct : | Buffer |
Properties | Defined By | |
---|---|---|
data : void*
|
Soup.Buffer | |
length : guint32
|
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
|
||
new Soup.Buffer.with_owner
(void* data, guint32 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
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 | |
Creates a new SoupBuffer containing length bytes "copied" from
any data, but will instead simply reference the same data as
Creates a new SoupBuffer containing length bytes "copied" from
any data, but will instead simply reference the same data as
|
Soup.Buffer |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Soup.ContentSniffer
Method |
|
Soup.Message
Signal |
|
Soup.Message
Signal |
|
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 |
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 |
Gets the indicated body part from multipart.
|