spiderfire
spiderfire copied to clipboard
[Hacktoberfest] URLSearchParams in URL Module
Although the URL Module is mostly complete, URLSearchParams
is currently unimplemented.
This can be implemented with the #[js_class]
macro, you can look at the definition of URL
or ask here for more help.
Since the URLSearchParams
should mutate the underlying URL
object, it can probably store a url: &mut Url
or the output of Url::query_pairs_mut
. Url::query_pairs_mut
should deal with most of the underlying implementation details, and the main task will be mapping the underlying functions to the JS API.
Requirements: Basic in JavaScript, Intermediate in Rust Difficulty: Intermediate