public static IHttpMultiPartFormDataContentTypeDescriptor Json(this IHttpMultiPartFormDataContentDescriptor descriptor, string content, string name, string filename = "")
 {
     return(descriptor.WithContent(content).WithDisposition(name, filename).WithContentType("application/json"));
 }
 public static IHttpMultiPartFormDataDispositionDescriptor WithContent(this IHttpMultiPartFormDataContentDescriptor descriptor, string content)
 {
     return(descriptor.WithContent(new StringContent(content)));
 }
 public static IHttpMultiPartFormDataDispositionDescriptor WithContent(this IHttpMultiPartFormDataContentDescriptor descriptor, Stream content, int bufferlenght = 4096)
 {
     return(descriptor.WithContent(new StreamContent(content, bufferlenght)));
 }
 public static IHttpMultiPartFormDataContentTypeDescriptor UrlEncoded(this IHttpMultiPartFormDataContentDescriptor descriptor, string content, string name, string filename = "")
 {
     return(descriptor.WithContent(WebUtility.UrlEncode(content)).WithDisposition(WebUtility.UrlEncode(name), filename));
 }