public HttpServerExchange setResponseContentLength ( long length ) { if ( length == - 1 ) { responseHeaders . remove ( Headers . CONTENT_LENGTH ) ; } else { responseHeaders . put ( Headers . CONTENT_LENGTH , Long . toString ( length ) ) ; } return this ; }
Sets the response content length