It derives from <GObject>.
Represents a URI scheme response.
If you register a particular URI scheme in a
<WebKitWebContext>, using web-context:register-uri-scheme, you have to
provide a
WebKitURISchemeRequestCallback.
After that, when a URI response is made with that particular scheme,
your callback will be called. There you will be able to provide more
response parameters when the methods and properties of a
<WebKitURISchemeRequest> is not enough.
When you finished setting up your
<WebKitURISchemeResponse>, call
webkit_uri_request_finish_with_response() with it to return the
response.
The input stream to read from.
Its value is a <GInputStream>, or
#f.
It can only be set when the object is made, with #:stream. It
cannot be read.
The input stream length in bytes, -1 for unknown length.
Its value is a 64-bit integer.
It can only be set when the object is made, with #:stream-length.
It cannot be read.
Create a new <WebKitURISchemeResponse>
Passed: a <GInputStream>.
a <GInputStream> to read the contents of
the request
Passed: a 64-bit integer.
the length of the stream or -1 if not known
Returned: a <WebKitURISchemeResponse>.
the newly created
<WebKitURISchemeResponse>.
Sets the content type for the self
Passed: a <WebKitURISchemeResponse>.
Passed: a string.
the content type of the stream
Assign the provided
<SoupMessageHeaders> to the response.
headers need to be of the type
response. Any existing headers
will be overwritten.
Passed: a <WebKitURISchemeResponse>.
Passed: a <SoupMessageHeaders>.
the HTTP headers to be set
Sets the status code and reason phrase for the self.
If status-code is a known value and reason-phrase is
#f, the reason-phrase will be set automatically.
Passed: a <WebKitURISchemeResponse>.
Passed: an unsigned 32-bit integer.
the HTTP status code to be returned
Passed, or left out: a string, or #f.
a reason phrase