int buffersize = HttpConnectionParams.getSocketBufferSize(params);
this.socket = socket;
this.outbuffer = new SocketOutputBuffer(socket, buffersize, params);
this.inbuffer = new SocketInputBuffer(socket, buffersize, params);
this.contentLenStrategy = new StrictContentLengthStrategy();
this.requestParser = new HttpRequestParser(
this.inbuffer, null, new DefaultHttpRequestFactory(), params);
this.responseWriter = new HttpResponseWriter(
this.outbuffer, null, params);
}