Example #1
0
 public static HttpRequestMessage CreateRequest(this IRequestBuilder builder, HttpMethod method, string url, params KeyValuePair <string, string>[] content) => builder.CreateRequest(method, url, content);
Example #2
0
 public static HttpRequestMessage CreateRequest(this IRequestBuilder builder, HttpMethod method, string url, IEnumerable <KeyValuePair <string, object?> > content) => builder.CreateRequest(method, url, content.Select(x => new KeyValuePair <string, string>(x.Key, x.Value?.ToString() ?? string.Empty)));