[whatwg/url] Let [=UTF-8 percent-encode=] take an extra optional boolean parameter spaceAsPlus (default false) (Issue #765)

Is it possible to add an extra boolean parameter `spaceAsPlus` which defaults to false to [UTF-8 percent-encode algorithm](https://url.spec.whatwg.org/#utf-8-percent-encode)? It calls the not exported [percent-encode after encoding algorithm](https://url.spec.whatwg.org/#string-percent-encode-after-encoding) which has the `spaceAsPlus` parameter. For my use case, we want to set `spaceAsPlus` to true when using [=UTF-8 percent-encode=] algorithm, which is not supported for the current defination. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/765
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/765@github.com>

Received on Wednesday, 22 March 2023 04:49:09 UTC