assertEquals("/whatever", request.getRequestLine().getUri());
assertEquals(1, request.getAllHeaders().length);
}
public void testParsingChunkedMessages() throws Exception {
SessionInputBuffer inbuf = new SessionInputBuffer(1024, 128);
HttpRequestFactory requestFactory = new DefaultHttpRequestFactory();
HttpRequestParser requestParser = new HttpRequestParser(inbuf, requestFactory);
requestParser.fillBuffer(newChannel("GET /whatev"));
HttpRequest request = (HttpRequest) requestParser.parse();