UriSchemeRequest

class UriSchemeRequest(pointer: <Error class: unknown class><<Error class: unknown class>>)

Represents a URI scheme request.

If you register a particular URI scheme in a #WebKitWebContext, using webkit_web_context_register_uri_scheme(), you have to provide a #WebKitURISchemeRequestCallback. After that, when a URI request is made with that particular scheme, your callback will be called. There you will be able to access properties such as the scheme, the URI and path, and the #WebKitWebView that initiated the request, and also finish the request with webkit_uri_scheme_request_finish().

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val webkitURISchemeRequestPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun finish(stream: <Error class: unknown class>, streamLength: <Error class: unknown class>, contentType: String? = null)

Finish a #WebKitURISchemeRequest by setting the contents of the request and its mime type.

Link copied to clipboard
fun finishError(error: <Error class: unknown class>)

Finish a #WebKitURISchemeRequest with a #GError.

Link copied to clipboard

Finish a #WebKitURISchemeRequest by returning a #WebKitURISchemeResponse

Link copied to clipboard
fun getHttpBody(): <Error class: unknown class>

Get the request body.

Link copied to clipboard
fun getHttpHeaders(): <Error class: unknown class>

Get the #SoupMessageHeaders of the request.

Link copied to clipboard

Get the HTTP method of the @request.

Link copied to clipboard

Get the URI path of @request.

Link copied to clipboard

Get the URI scheme of @request.

Link copied to clipboard
fun getUri(): String

Get the URI of @request.

Link copied to clipboard

Get the #WebKitWebView that initiated the request.