ServiceStack.Text.WebRequestExtensions.PostBytesToUrl C# (CSharp) Méthode

PostBytesToUrl() public static méthode

public static PostBytesToUrl ( this url, byte requestBody = null, string contentType = null, string acceptContentType = "*/*", Action requestFilter = null, Action responseFilter = null ) : byte[]
url this
requestBody byte
contentType string
acceptContentType string
requestFilter Action
responseFilter Action
Résultat byte[]
        public static byte[] PostBytesToUrl(this string url, byte[] requestBody = null, string contentType = null, string acceptContentType = "*/*",
            Action<HttpWebRequest> requestFilter = null, Action<HttpWebResponse> responseFilter = null)
        {
            return SendBytesToUrl(url, method: "POST",
                contentType: contentType, requestBody: requestBody,
                acceptContentType: acceptContentType, requestFilter: requestFilter, responseFilter: responseFilter);
        }