UriSchemeResponse

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

Represents a URI scheme response.

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 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.

Skipped during bindings generation

  • method stream: Property has no getter nor setter

  • method stream-length: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(inputStream: <Error class: unknown class>, streamLength: <Error class: unknown class>)

Create a new #WebKitURISchemeResponse

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

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
fun setContentType(contentType: String)

Sets the content type for the @response

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

Assign the provided #SoupMessageHeaders to the response.

Link copied to clipboard
fun setStatus(statusCode: <Error class: unknown class>, reasonPhrase: String? = null)

Sets the status code and reason phrase for the @response.