Beispiel #1
0
        public HttpContent(ByteAppender contentAppender, String contentType)
        {
            // Option 1
            this.contentAsBytes = null;
            // Option 2
            this.contentAsString        = null;
            this.contentAsStringEncoder = null;
            // Option 3
            this.contentAppender = contentAppender;

            this.contentType = contentType;
        }
Beispiel #2
0
        public HttpContent(String content, Encoder encoding, String contentType)
        {
            // Option 1
            this.contentAsBytes = null;
            // Option 2
            this.contentAsString        = content;
            this.contentAsStringEncoder = encoding;
            // Option 3
            this.contentAppender = null;

            this.contentType = contentType;
        }
Beispiel #3
0
        public HttpRequest(String method, ByteAppender resourceAppender, HttpContent content)
        {
            this.method = method;

            this.resource         = null;
            this.resourceAppender = resourceAppender;

            this.overrideHostHeader    = null;
            this.forcePortInHostHeader = false;

            this.extraHeaders         = null;
            this.extraHeadersAppender = null;

            this.content = content;
        }
Beispiel #4
0
 public HttpContent(ByteAppender contentAppender)
     : this(contentAppender, (String)null)
 {
 }
Beispiel #5
0
 public HttpRequest(String method, ByteAppender resourceAppender)
     : this(method, resourceAppender, default(HttpContent))
 {
 }