URISchemeRequest
Object Hierarchy:
WebKit.URISchemeRequest
WebKit.URISchemeRequest
WebKit.URISchemeRequest
GLib.Object
GLib.Object
GLib.Object->WebKit.URISchemeRequest
Description:
[ CCode ( type_id = "webkit_uri_scheme_request_get_type ()" ) ]public class URISchemeRequest : Object
Represents a URI scheme request.
If you register a particular URI scheme in a WebContext , using
register_uri_scheme , you have to provide a
URISchemeRequestCallback . 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 WebView that initiated the request, and also finish the request with
finish .
Content:
Creation methods:
Methods:
public void finish (InputStream stream, int64 stream_length, string ? content_type)
Finish a URISchemeRequest by setting the
contents of the request and its mime type.
public void finish_error (Error error)
Finish a URISchemeRequest with a
Error .
public void finish_with_response (URISchemeResponse response)
public unowned MessageHeaders get_http_headers ()
Get the MessageHeaders of the request.
public unowned string get_http_method ()
Get the HTTP method of the this .
public unowned string get_path ()
Get the URI path of this .
public unowned string get_scheme ()
Get the URI scheme of this .
public unowned string get_uri ()
Get the URI of this .
public unowned WebView get_web_view ()
Get the WebView that
initiated the request.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref