protected void initRequest ( ) { _hostHeader = null ; _xForwardedHostHeader = null ; _expect100Continue = false ; _cookies . clear ( ) ; _contentLengthIn = - 1 ; _hasReadStream = false ; _readEncoding = null ; //_request = request; //_requestFacade = getHttp().createFacade(this); _startTime = - 1 ; _expireTime = - 1 ; _isUpgrade = false ; _statusCode = 200 ; _statusMessage = "OK" ; _headerKeysOut . clear ( ) ; _headerValuesOut . clear ( ) ; _contentTypeOut = null ; _contentEncodingOut = null ; _contentLengthOut = - 1 ; _footerKeys . clear ( ) ; _footerValues . clear ( ) ; out ( ) . start ( ) ; _isHeaderWritten = false ; _isClosed = false ; //_serverHeader = http().serverHeader(); _isKeepalive = true ; }
Prepare the Request object for a new request .