public HttpResponse close ( ) { HttpConnection httpConnection = httpRequest . httpConnection ; if ( httpConnection != null ) { httpConnection . close ( ) ; httpRequest . httpConnection = null ; } return this ; }
Closes requests connection if it was open . Should be called when using keep - alive connections . Otherwise connection will be already closed .