webkit.urischeme_response

Module for [URISchemeResponse] class

Types 3

Represents a URI scheme response.

If you register a particular URI scheme in a #WebKitWebContext, using [webkit.web_context.WebContext.registerUriScheme], 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.

Methods
GType _gType() @property
URISchemeResponse self()Returns `this`, for use in `with` statements.
URISchemeResponseGidBuilder builder()Get builder for [webkit.urischeme_response.URISchemeResponse] Returns: New builder object
void setContentType(string contentType)Sets the content type for the response
void setHttpHeaders(soup.message_headers.MessageHeaders headers)Assign the provided #SoupMessageHeaders to the response.
void setStatus(uint statusCode, string reasonPhrase = null)Sets the status code and reason phrase for the response.
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.input_stream.InputStream inputStream, long streamLength)Create a new #WebKitURISchemeResponse
Methods
T stream(gio.input_stream.InputStream propval)Set `stream` property. Params: propval = The input stream to read from. Returns: Builder instance for fluent chaining
T streamLength(long propval)Set `streamLength` property. Params: propval = The input stream length in bytes, `-1` for unknown length. Returns: Builder instance for fluent chaining

Fluent builder for [webkit.urischeme_response.URISchemeResponse]