1.34 <WebKitURIResponse>

Class: <WebKitURIResponse>

It derives from <GObject>.

Represents an URI response.

A <WebKitURIResponse> contains information such as the URI, the status code, the content length, the mime type, the HTTP status or the suggested filename.

Properties

Property: uriresponse:content-length self

The expected content length of the response.

Its value is an unsigned 64-bit integer.

It is read only.

Property: uriresponse:http-headers self

The HTTP headers of the response, or #f if the response is not an HTTP response.

Its value is a <SoupMessageHeaders>, or #f.

It is read only.

Property: uriresponse:mime-type self

The MIME type of the response.

Its value is a string, or #f.

It is read only.

Property: uriresponse:status-code self

The status code of the response as returned by the server.

Its value is an unsigned 32-bit integer.

It is read only.

Property: uriresponse:suggested-filename self

The suggested filename for the URI response.

Its value is a string, or #f.

It is read only.

Property: uriresponse:uri self

The URI for which the response was made.

Its value is a string, or #f.

It is read only.

Procedures

Method: uriresponse:get-content-length self ⇒ %return
Method: get-content-length self ⇒ %return

Get the expected content length of the <WebKitURIResponse>.

It can be 0 if the server provided an incorrect or missing Content-Length.

self

Passed: a <WebKitURIResponse>.

a <WebKitURIResponse>

%return

Returned: an unsigned 64-bit integer.

the expected content length of self.

Method: uriresponse:get-http-headers self ⇒ %return
Method: get-http-headers self ⇒ %return

Get the HTTP headers of a <WebKitURIResponse> as a <SoupMessageHeaders>.

self

Passed: a <WebKitURIResponse>.

a <WebKitURIResponse>

%return

Returned: a <SoupMessageHeaders>.

a <SoupMessageHeaders> with the HTTP headers of self or #f if self is not an HTTP response.

Method: uriresponse:get-mime-type self ⇒ %return
Method: get-mime-type self ⇒ %return

Gets the MIME type of the response.

self

Passed: a <WebKitURIResponse>.

a <WebKitURIResponse>

%return

Returned: a string.

MIME type, as a string.

Method: uriresponse:get-status-code self ⇒ %return
Method: get-status-code self ⇒ %return

Get the status code of the <WebKitURIResponse>.

Get the status code of the <WebKitURIResponse> as returned by the server. It will normally be a SoupKnownStatusCode, for example ok, though the server can respond with any unsigned integer.

self

Passed: a <WebKitURIResponse>.

a <WebKitURIResponse>

%return

Returned: an unsigned 32-bit integer.

the status code of self

Method: uriresponse:get-suggested-filename self ⇒ %return
Method: get-suggested-filename self ⇒ %return

Get the suggested filename for self.

Get the suggested filename for self, as specified by the ’Content-Disposition’ HTTP header, or #f if it’s not present.

self

Passed: a <WebKitURIResponse>.

a <WebKitURIResponse>

%return

Returned: a string.

the suggested filename or #f if the ’Content-Disposition’ HTTP header is not present.

Method: uriresponse:get-uri self ⇒ %return
Method: get-uri self ⇒ %return

Gets the URI which resulted in the response.

self

Passed: a <WebKitURIResponse>.

a <WebKitURIResponse>

%return

Returned: a string.

response URI, as a string.