URIResponse

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

Constructors

this
this(WebKitURIResponse* webKitURIResponse, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getContentLength
ulong getContentLength()

Get the expected content length of the #WebKitURIResponse. It can be 0 if the server provided an incorrect or missing Content-Length.

getHttpHeaders
MessageHeaders getHttpHeaders()

Get the HTTP headers of a #WebKitURIResponse as a #SoupMessageHeaders.

getMimeType
string getMimeType()
getStatusCode
uint getStatusCode()

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.

getStruct
void* getStruct()

the main Gtk struct as a void*

getSuggestedFilename
string getSuggestedFilename()

Get the suggested filename for @response, as specified by the 'Content-Disposition' HTTP header, or %NULL if it's not present.

getURIResponseStruct
WebKitURIResponse* getURIResponseStruct(bool transferOwnership)

Get the main Gtk struct

getUri
string getUri()

Static functions

getType
GType getType()

Variables

webKitURIResponse
WebKitURIResponse* webKitURIResponse;

the main Gtk struct

Meta