ServiceStack.HttpUtils.PutToUrl C# (CSharp) Méthode

PutToUrl() public static méthode

public static PutToUrl ( this url, object formData = null, string accept = "*/*", Action requestFilter = null, Action responseFilter = null ) : string
url this
formData object
accept string
requestFilter Action
responseFilter Action
Résultat string
        public static string PutToUrl(this string url, object formData = null, string accept = "*/*",
            Action<HttpWebRequest> requestFilter = null, Action<HttpWebResponse> responseFilter = null)
        {
            string postFormData = formData != null ? QueryStringSerializer.SerializeToString(formData) : null;

            return SendStringToUrl(url, method: "PUT",
                contentType: MimeTypes.FormUrlEncoded, requestBody: postFormData,
                accept: accept, requestFilter: requestFilter, responseFilter: responseFilter);
        }

Same methods

HttpUtils::PutToUrl ( this url, string formData = null, string accept = "*/*", Action requestFilter = null, Action responseFilter = null ) : string