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