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; }
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; }
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; }
public HttpContent(ByteAppender contentAppender) : this(contentAppender, (String)null) { }
public HttpRequest(String method, ByteAppender resourceAppender) : this(method, resourceAppender, default(HttpContent)) { }