Class

WPEWebKitURISchemeResponse

Description [src]

class WPEWebKit.URISchemeResponse : GObject.Object {
  parent: GObject
}

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.

Hierarchy

hierarchy this WebKitURISchemeResponse ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

webkit_uri_scheme_response_new

Create a new WebKitURISchemeResponse.

Available since: 2.36

Instance methods

webkit_uri_scheme_response_set_content_type

Sets the content type for the response.

Available since: 2.36

webkit_uri_scheme_response_set_http_headers

Assign the provided SoupMessageHeaders to the response. headers need to be of the type SOUP_MESSAGE_HEADERS_RESPONSE. Any existing headers will be overwritten.

Available since: 2.36

webkit_uri_scheme_response_set_status

Sets the status code and reason phrase for the response. If status_code is a known value and reason_phrase is NULL, the reason_phrase will be set automatically.

Available since: 2.36

Methods inherited from GObject (42)

Please see GObject for a full list of methods.

Properties

WPEWebKit.URISchemeResponse:stream

The input stream to read from.

Available since: 2.36

WPEWebKit.URISchemeResponse:stream-length

The input stream length in bytes, -1 for unknown length.

Available since: 2.36

Signals

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct WPEWebKitURISchemeResponseClass {
  GObjectClass parent_class;
  void (* _webkit_reserved0) (
void
  );
  void (* _webkit_reserved1) (
void
  );
  void (* _webkit_reserved2) (
void
  );
  void (* _webkit_reserved3) (
void
  );
  
}
Class members
parent_class
GObjectClass
  No description available.
_webkit_reserved0
void (* _webkit_reserved0) (
void
  )
  No description available.
_webkit_reserved1
void (* _webkit_reserved1) (
void
  )
  No description available.
_webkit_reserved2
void (* _webkit_reserved2) (
void
  )
  No description available.
_webkit_reserved3
void (* _webkit_reserved3) (
void
  )
  No description available.