Top |
const gchar * | webkit_uri_response_get_uri () |
guint | webkit_uri_response_get_status_code () |
guint64 | webkit_uri_response_get_content_length () |
const gchar * | webkit_uri_response_get_mime_type () |
const gchar * | webkit_uri_response_get_suggested_filename () |
SoupMessageHeaders * | webkit_uri_response_get_http_headers () |
guint64 | content-length | Read |
SoupMessageHeaders * | http-headers | Read |
gchar * | mime-type | Read |
guint | status-code | Read |
gchar * | suggested-filename | Read |
gchar * | uri | Read |
A WebKitURIResponse contains information such as the URI, the status code, the content length, the mime type, the HTTP status or the suggested filename.
const gchar *
webkit_uri_response_get_uri (WebKitURIResponse *response
);
guint
webkit_uri_response_get_status_code (WebKitURIResponse *response
);
Get the status code of the WebKitURIResponse as returned by
the server. It will normally be a SoupKnownStatusCode, for
example SOUP_STATUS_OK
, though the server can respond with any
unsigned integer.
guint64
webkit_uri_response_get_content_length
(WebKitURIResponse *response
);
Get the expected content length of the WebKitURIResponse. It can be 0 if the server provided an incorrect or missing Content-Length.
const gchar *
webkit_uri_response_get_mime_type (WebKitURIResponse *response
);
const gchar *
webkit_uri_response_get_suggested_filename
(WebKitURIResponse *response
);
Get the suggested filename for response
, as specified by
the 'Content-Disposition' HTTP header, or NULL
if it's not
present.
the suggested filename or NULL
if
the 'Content-Disposition' HTTP header is not present.
[transfer none]
SoupMessageHeaders *
webkit_uri_response_get_http_headers (WebKitURIResponse *response
);
Get the HTTP headers of a WebKitURIResponse as a SoupMessageHeaders.
a SoupMessageHeaders with the HTTP headers of response
or NULL
if response
is not an HTTP response.
[transfer none]
Since: 2.6
“content-length”
property“content-length” guint64
The expected content length of the response.
Flags: Read
Default value: 0
“http-headers”
property “http-headers” SoupMessageHeaders *
The HTTP headers of the response, or NULL
if the response is not an HTTP response.
Flags: Read
Since: 2.6
“mime-type”
property“mime-type” gchar *
The MIME type of the response.
Flags: Read
Default value: NULL
“status-code”
property“status-code” guint
The status code of the response as returned by the server.
Flags: Read
Default value: 0
“suggested-filename”
property“suggested-filename” gchar *
The suggested filename for the URI response.
Flags: Read
Default value: NULL
“uri”
property“uri” gchar *
The URI for which the response was made.
Flags: Read
Default value: NULL