private static HttpConnectionState BuildConnectionState(string url) { HttpRequest request = new HttpRequest(url); HttpResponseParser parser = new HttpResponseParser(); HttpConnectionState state = new HttpConnectionState(request, parser); return state; }
public HttpConnectionState(HttpRequest request, HttpResponseParser parser) { Request = request; ResponseParser = parser; }