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