webkit2gtk-rs icon indicating copy to clipboard operation
webkit2gtk-rs copied to clipboard

get_http_headers Method not implemented yet.

Open whizsid opened this issue 5 years ago • 6 comments

I want to use webkit-uri-request-get-http-headers to filter and modify my requests. But this method is not implemented yet.

whizsid avatar Jan 12 '20 05:01 whizsid

It's not implemented yet because it requires libsoup rust bindings, someone from the GNOME community generated them here https://gitlab.gnome.org/World/Rust/soup-rs

bilelmoussaoui avatar Jan 13 '20 10:01 bilelmoussaoui

@bilelmoussaoui Oh! I didn't see it. I have also generated this library yesterday. https://github.com/whizsid/soup-rs . I can make a PR after adding them to 'cargo' and 'gir' config files. If you want, I like to add this repo to gtk-rs team after finished some build errors.

whizsid avatar Jan 13 '20 11:01 whizsid

@whizsid it would be nice if you could contribute directly to the one hosted in GNOME, I have been working on updating it

bilelmoussaoui avatar Jan 13 '20 11:01 bilelmoussaoui

@bilelmoussaoui Currently I am using a custom build of the webkit2gtk-rs. But the same issue appeared when using the 'webkit2gtk-webextension-rs' library.

whizsid avatar Jan 16 '20 08:01 whizsid

@whizsid soup-rs should now work with the latest gtk-rs stack

bilelmoussaoui avatar Jan 19 '20 14:01 bilelmoussaoui

@bilelmoussaoui Thank you! But still, I can not use it with webkit2gtk. I am getting an error like 'failed to select a version for gio-sys'. soup-rs is depending on gio-sys 0.9 and webkit2gtk is depending on the bleeding edge.

whizsid avatar Jan 19 '20 18:01 whizsid