4 ms·
Curious what you're looking for in a path+querystring builder. For ASP.NET controllers, I'd use attribute routing's URL generation: https://docs.microsoft.com/
by jongalloway2 10y ago
Curious what you're looking for in a path+querystring builder.
For ASP.NET controllers, I'd use attribute routing's URL generation: https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/routing#url-generation https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers...
If you want a separate library for use outside of ASP.NET, and you want something more sophisticated than UriBuilder, there are several out there. I've used Superscribe in the past, but I just looked around and Flurl looks pretty neat: http://tmenier.github.io/Flurl/ http://tmenier.github.io/Flurl/
- sk5t 10y agoI mean something like WebTarget: https://jersey.java.net/documentation/latest/client.html#d0e4526 https://jersey.java.net/documentation/latest/client.html#d0e... Haven't yet found the .NET equivalent to allow webtarget.path("foo").path("bar").query("hello", "yes") without making the user try to remember which URI query-part-escaping static method is appropriate. Now that said, Flurl looks to have this pretty well covered, neat library!