Code example for BasicHeader

0
            return -1; 
        } 
    } 
 
    public Header getContentType() {
        return new BasicHeader("Content-Type", "text/json");
    } 
 
    public boolean isChunked() { 
        return false; 
    } 
 
    public boolean isRepeatable() { 
        return false; 
    } 
 
    public boolean isStreaming() { 
        return true; 
    } 
 
    public void writeTo(OutputStream stream) {