Exemple #1
0
        public virtual HttpRequest SetContent(byte[] content, string contentType)
        {
            if (content != null && content.Length > 0)
                Content = new BytesContent(content, contentType);

            return this;
        }
Exemple #2
0
        public virtual HttpRequest SetContent(byte[] content, string contentType)
        {
            if (content != null && content.Length > 0)
            {
                Content = new BytesContent(content, contentType);
            }

            return(this);
        }