tauri-apps / webkit2gtk-rs

WebKit2 bindings and wrappers for Rust
MIT License
137 stars 30 forks source link

get_http_headers Method not implemented yet. #61

Open whizsid opened 4 years ago

whizsid commented 4 years ago

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

bilelmoussaoui commented 4 years ago

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

whizsid commented 4 years ago

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

bilelmoussaoui commented 4 years ago

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

whizsid commented 4 years ago

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

bilelmoussaoui commented 4 years ago

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

whizsid commented 4 years ago

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