| Top |
| GInputStream * | soup_request_send () |
| void | soup_request_send_async () |
| GInputStream * | soup_request_send_finish () |
| goffset | soup_request_get_content_length () |
| const char * | soup_request_get_content_type () |
| SoupSession * | soup_request_get_session () |
| SoupURI * | soup_request_get_uri () |
| SoupSession * | session | Read / Write / Construct Only |
| SoupURI * | uri | Read / Write / Construct Only |
GObject ╰── SoupRequest ├── SoupRequestData ├── SoupRequestFile ╰── SoupRequestHTTP
A SoupRequest is created by SoupRequester, and represents a request to retrieve a particular URI.
GInputStream * soup_request_send (SoupRequest *request,GCancellable *cancellable,GError **error);
Synchronously requests the URI pointed to by request
, and returns
a GInputStream that can be used to read its contents.
a GInputStream that can be used to
read from the URI pointed to by request
.
[transfer full]
Since 2.34
void soup_request_send_async (SoupRequest *request,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Begins an asynchronously request for the URI pointed to by
request
.
request |
||
cancellable |
a GCancellable or |
|
callback |
||
user_data |
user data passed to |
Since 2.34
GInputStream * soup_request_send_finish (SoupRequest *request,GAsyncResult *result,GError **error);
Gets the result of a soup_request_send_async().
a GInputStream that can be used to
read from the URI pointed to by request
.
[transfer full]
Since 2.34
goffset
soup_request_get_content_length (SoupRequest *request);
Gets the length of the data represented by request
.
Since 2.34
const char *
soup_request_get_content_type (SoupRequest *request);
Gets the type of the data represented by request
. As in the
HTTP Content-Type header, this may include parameters after
the MIME type.
Since 2.34
SoupSession *
soup_request_get_session (SoupRequest *request);
Gets request
's SoupSession
Since 2.34
SoupURI *
soup_request_get_uri (SoupRequest *request);
Gets request
's URI
Since 2.34
“session” property“session” SoupSession *
The request's session.
Flags: Read / Write / Construct Only