public static HttpRequestMessage SetContentForms(this HttpRequestMessage m, FormUrlEncodedContentX formContent) { if (m != null) { m.Content = SetContentForms(formContent); } return(m); }
public static HttpContent SetContentForms(FormUrlEncodedContentX formContent) { return(formContent == null ? null : formContent.ToFormUrlEncodedContent());; }
public static Task <HttpResponseMessage> PostAsync(this HttpClient client, string requestUri, FormUrlEncodedContentX formContent) { return(client.PostAsync(requestUri, formContent.ToFormUrlEncodedContent())); }