public static HttpUriBuilder WithUri(this HttpUriBuilder builder, string uri) { if (string.IsNullOrEmpty(uri)) { throw new ArgumentException("Uri must not be null or empty.", nameof(uri)); } return(builder.WithUri(new Uri(uri))); }
public static HttpUriBuilder WithBaseUri(this HttpUriBuilder builder, Uri uri) { return(builder.WithUri(uri)); }