1.35 <WebKitURISchemeRequest>

Class: <WebKitURISchemeRequest>

It derives from <GObject>.

Represents a URI scheme request.

If you register a particular URI scheme in a <WebKitWebContext>, using 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 urischeme-request:finish.

Procedures

Method: urischeme-request:finish self stream stream-length [content-type]
Method: finish self stream stream-length [content-type]

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

self

Passed: a <WebKitURISchemeRequest>.

a <WebKitURISchemeRequest>

stream

Passed: a <GInputStream>.

a <GInputStream> to read the contents of the request

stream-length

Passed: a 64-bit integer.

the length of the stream or -1 if not known

content-type

Passed, or left out: a string, or #f.

the content type of the stream or #f if not known

Method: urischeme-request:finish-error self error
Method: finish-error self error

Finish a <WebKitURISchemeRequest> with a <GError>.

self

Passed: a <WebKitURISchemeRequest>.

a <WebKitURISchemeRequest>

error

Passed: a <GError>.

a <GError> that will be passed to the <WebKitWebView>

Method: urischeme-request:finish-with-response self response
Method: finish-with-response self response

Finish a <WebKitURISchemeRequest> by returning a <WebKitURISchemeResponse>

self

Passed: a <WebKitURISchemeRequest>.

a <WebKitURISchemeRequest>

response

Passed: a <WebKitURISchemeResponse>.

a <WebKitURISchemeResponse>

Method: urischeme-request:get-http-body self ⇒ %return
Method: get-http-body self ⇒ %return

Get the request body.

self

Passed: a <WebKitURISchemeRequest>.

a <WebKitURISchemeRequest>

%return

Returned: a <GInputStream>.

(nullable): the body of the self.

Method: urischeme-request:get-http-headers self ⇒ %return
Method: get-http-headers self ⇒ %return

Get the <SoupMessageHeaders> of the request.

self

Passed: a <WebKitURISchemeRequest>.

a <WebKitURISchemeRequest>

%return

Returned: a <SoupMessageHeaders>.

the <SoupMessageHeaders> of the self.

Method: urischeme-request:get-http-method self ⇒ %return
Method: get-http-method self ⇒ %return

Get the HTTP method of the self.

self

Passed: a <WebKitURISchemeRequest>.

a <WebKitURISchemeRequest>

%return

Returned: a string.

the HTTP method of the self

Method: urischeme-request:get-path self ⇒ %return
Method: get-path self ⇒ %return

Get the URI path of self.

self

Passed: a <WebKitURISchemeRequest>.

a <WebKitURISchemeRequest>

%return

Returned: a string.

the URI path of self

Method: urischeme-request:get-scheme self ⇒ %return
Method: get-scheme self ⇒ %return

Get the URI scheme of self.

self

Passed: a <WebKitURISchemeRequest>.

a <WebKitURISchemeRequest>

%return

Returned: a string.

the URI scheme of self

Method: urischeme-request:get-uri self ⇒ %return
Method: get-uri self ⇒ %return

Get the URI of self.

self

Passed: a <WebKitURISchemeRequest>.

a <WebKitURISchemeRequest>

%return

Returned: a string.

the full URI of self

Method: urischeme-request:get-web-view self ⇒ %return
Method: get-web-view self ⇒ %return

Get the <WebKitWebView> that initiated the request.

self

Passed: a <WebKitURISchemeRequest>.

a <WebKitURISchemeRequest>

%return

Returned: a <WebKitWebView>.

the <WebKitWebView> that initiated self.