Moved PortFinder from test to main.
Moved PortFinder from test to main.
Fixed DefaultHandlerTest2, so that it uses spock correctly.
Removed unused DeproxyTest class.
Added tests for chunked encoding.
Added the HandlerContext class.
Made field types explicit.
Made it pass a stream around instead of a PrintWriter. The PrintWriter is now instantiated later, in sendResponse.
Added a constructor.
Added a dependency for Apache HttpComponents HttpCore.
Added the DeproxyHttpRequest class.
Split sendRequest into two methods, 1 using the old raw-sockets code and 2 using HttpClient, with 2 as the default.
Added the ClientConnector interface.
Extracted the sendRequest1 and sendRequest2 methods into the BareClientConnector and ApacheClientConnector classes, respectively.
cleanup
Added the RequestParams class, a client-side corollary to HandlerContext for passing additional optional info to the client connector.
Added request params to sendRequest.
Added a 'chunked' parameter to makeRequest.
Fixed the addDefaultHeaders parameter in makeRequest(Map). Un-ignored a test.
Added a defaultClientConnector parameter to the Deproxy constructor.