@ Override protected void initRequest ( ) { super . initRequest ( ) ; _state = _state . toActive ( ) ; // HttpBufferStore httpBuffer = getHttpBufferStore(); HttpBufferStore bufferStore = getHttpBufferStore ( ) ; _method . clear ( ) ; _methodString = null ; _protocol . clear ( ) ; _uriLength = 0 ; if ( bufferStore == null ) { // server/05h8 _uri = getSmallUriBuffer ( ) ; // httpBuffer.getUriBuffer(); _headerBuffer = getSmallHeaderBuffer ( ) ; // httpBuffer.getHeaderBuffer(); _headerKeys = getSmallHeaderKeys ( ) ; // httpBuffer.getHeaderKeys(); _headerValues = getSmallHeaderValues ( ) ; // httpBuffer.getHeaderValues(); } _uriHost . clear ( ) ; _host = null ; _keepalive = KeepaliveState . INIT ; _headerSize = 0 ; _headerLength = 0 ; _inOffset = 0 ; _isChunkedIn = false ; _isFirst = true ; }
Clear the request variables in preparation for a new request .