Beispiel #1
0
 public static HttpRequestMessageBuilder SetBy(this HttpRequestMessageBuilder builder, Action <HttpRequestMessageBuilder> config)
 {
     config?.Invoke(builder);
     return(builder);
 }
Beispiel #2
0
 public static HttpRequestMessageBuilder SetMethod(this HttpRequestMessageBuilder builder, string method)
 {
     builder.SetMethod(method?.ToHttpMethod());
     return(builder);
 }
Beispiel #3
0
 public static HttpRequestMessageBuilder SetContent(this HttpRequestMessageBuilder builder, Stream content)
 {
     builder.SetContent(content.ToHttpContent());
     return(builder);
 }
Beispiel #4
0
 public static HttpRequestMessageBuilder SetUrl(this HttpRequestMessageBuilder builder, string url)
 {
     builder.SetUrl(url.ToUrl());
     return(builder);
 }