Code example for BasicHttpRequest

0
            return new BasicHttpRequest(requestline);
        } 
 
        public HttpRequest newHttpRequest(final String method, final String uri)
                throws MethodNotSupportedException { 
            return new BasicHttpRequest(method, uri);
        } 
    } 
     
    static class MemorySessionInputBuffer extends AbstractSessionInputBuffer {
        public MemorySessionInputBuffer(byte[] value) {
            init(new ByteArrayInputStream(value), 1000, params);
        } 
 
        @Override 
        public boolean isDataAvailable(int timeout) throws IOException {
            throw new UnsupportedOperationException();
        } 
    } 
     
    static class MemorySessionOutputBuffer extends AbstractSessionOutputBuffer {