-
Notifications
You must be signed in to change notification settings - Fork 193
UriBuilder does not work well with QueryBuilder #647
Comments
What were you going to do with the result? System.Uri is not well suited for use in HTTP headers. https://github.com/aspnet/HttpAbstractions/blob/dev/src/Microsoft.AspNetCore.Http.Extensions/UriHelper.cs works better there. MVC has other APIs for building urls in HTML bodies. |
Was going to pass the resulting |
Ah. UriHelper should work in place of UriBuilder too. |
Hmm? How would you use UriHelper to do what |
|
Is that really what we expect users to be doing? The APIs seem very awkward. |
We never ask users to build a System.Uri, it's only used in client APIs. |
Talked offline and we both agree that Therefore, closing this in favor of fixing #573. If you want to also add API to make this consumable from |
The
UriBuilder
class automatically prepends a?
to itsQuery
property which is troublesome when trying to construct a new uri.For instance:
The text was updated successfully, but these errors were encountered: