Example #1
0
        public void SetBody(byte[] buffer)
        {
            if (buffer == null)
            {
                throw new ArgumentNullException("buffer");
            }

            using (var data = new CFDataBuffer(buffer))
                CFHTTPMessageSetBody(Handle, data.Handle);
        }
Example #2
0
 public void SetBody(byte[] buffer)
 {
     using (var data = new CFDataBuffer(buffer))
         CFHTTPMessageSetBody(Handle, data.Handle);
 }
Example #3
0
 public void SetBody(byte[] buffer)
 {
     ThrowIfDisposed();
     using (var data = new CFDataBuffer(buffer))
         CFHTTPMessageSetBody(Handle, data.Handle);
 }