예제 #1
0
 public static HttpRequestMessage SetContentForms(this HttpRequestMessage m, FormUrlEncodedContentX formContent)
 {
     if (m != null)
     {
         m.Content = SetContentForms(formContent);
     }
     return(m);
 }
예제 #2
0
 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()));
 }