spiderfire icon indicating copy to clipboard operation
spiderfire copied to clipboard

[Hacktoberfest] URLSearchParams in URL Module

Open Redfire75369 opened this issue 1 year ago • 0 comments

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

Resources

Redfire75369 avatar Sep 28 '22 01:09 Redfire75369