I\'m looking for canonical way of changing scheme of a given System.Uri instance with System.UriBuilder without crappy string manipulations and magic constants. Say I have>
Ended up with this one:
var uriBuilder = new UriBuilder(requestUrl) { Scheme = Uri.UriSchemeHttps, Port = -1 // default port for scheme };