webkit.uriresponse
Module for [URIResponse] class
Types 3
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.
Methods
URIResponse self()Returns `this`, for use in `with` statements.URIResponseGidBuilder builder()Get builder for [webkit.uriresponse.URIResponse] Returns: New builder objectulong contentLength() @propertyGet `contentLength` property. Returns: The expected content length of the response.soup.message_headers.MessageHeaders httpHeaders() @propertyGet `httpHeaders` property. Returns: The HTTP headers of the response, or null if the response is not an HTTP response.uint statusCode() @propertyGet `statusCode` property. Returns: The status code of the response as returned by the server.string suggestedFilename() @propertyGet `suggestedFilename` property. Returns: The suggested filename for the URI response.ulong getContentLength()Get the expected content length of the #WebKitURIResponse.soup.message_headers.MessageHeaders getHttpHeaders()Get the HTTP headers of a #WebKitURIResponse as a #SoupMessageHeaders. Returns: a #SoupMessageHeaders with the HTTP headers of response or null if response is not an HTTP response.string getMimeType()Gets the MIME type of the response. Returns: MIME type, as a string.uint getStatusCode()Get the status code of the #WebKitURIResponse.string getSuggestedFilename()Get the suggested filename for response.string getUri()Gets the URI which resulted in the response. Returns: response URI, as a string.Fluent builder for [webkit.uriresponse.URIResponse]
Methods