refit icon indicating copy to clipboard operation
refit copied to clipboard

Add support for space seperated url encoding

Open DevTKSS opened this issue 6 months ago • 0 comments

Is your feature request related to a problem? Please describe.

I would need to seperate scopes for an oAuth Authorization Code flow like this:

&scope=transactions_r%20transactions_w

but all I seen that Refit supports is this:

Search(new [] {10, 20, 30})
>>> "/users/list?ages=10%2C20%2C30"

where you can recognize that is including a different seperator than I would need.

Describe the solution you'd like

Add support for url safe encoding " " to %20 or specifying the seperator characters?

Describe alternatives you've considered

Replacing it with UrlEncoder or my current approach is string.Replace set in foreach loop?

Describe suggestions on how to achieve the feature

some replace functionality or another Encoding for the querystring beside the CSV ?

Additional context

I did not find proper docs about this "Delimiter" is this something like I need?

DevTKSS avatar Aug 11 '25 19:08 DevTKSS