Code example for HttpEntity

Methods: writeTo

0
        final HttpEntity entity = request.getEntity();
        if (entity == null) {
            return; 
        } 
        final OutputStream outstream = prepareOutput(request);
        entity.writeTo(outstream);
        outstream.close();
    } 
 
    public HttpResponse receiveResponseHeader() throws HttpException, IOException {
        ensureOpen(); 
        final HttpResponse response = this.responseParser.parse();
        onResponseReceived(response);
        if (response.getStatusLine().getStatusCode() >= HttpStatus.SC_OK) {
            incrementResponseCount(); 
        } 
        return response;
    } 
 
    public void receiveResponseEntity( 
            final HttpResponse response) throws HttpException, IOException {