public HttpContextBuilder(HttpContext httpContext, RequestContextBuilder requestContextBuilder, ResponseContextBuilder responseContextBuilder, ServerContext serverContext) { _httpContext = httpContext; _requestContextBuilder = requestContextBuilder; _responseContextBuilder = responseContextBuilder; _serverContext = serverContext; }
internal RequestResponseHandler Create(Socket socket) { var httpContext = new HttpContext(new RequestContext(), new ResponseContext(), socket); var requestContextBuilder = new RequestContextBuilder(_serverContext); var responseContextBuilder = new ResponseContextBuilder(); var httpApplicationHandler = new HttpApplicationHandler(); var responseHandler = new ResponseHandler(_serverContext, new ResponseHeaderBuilder()); var httpContextBuilder = new HttpContextBuilder(httpContext, requestContextBuilder, responseContextBuilder, _serverContext); return new RequestResponseHandler(httpContextBuilder, httpApplicationHandler, responseHandler, _serverContext); }
internal RequestResponseHandler Create(Socket socket) { var httpContext = new HttpContext(new RequestContext(), new ResponseContext(), socket); var requestContextBuilder = new RequestContextBuilder(_serverContext); var responseContextBuilder = new ResponseContextBuilder(); var httpApplicationHandler = new HttpApplicationHandler(); var responseHandler = new ResponseHandler(_serverContext, new ResponseHeaderBuilder()); var httpContextBuilder = new HttpContextBuilder(httpContext, requestContextBuilder, responseContextBuilder, _serverContext); return(new RequestResponseHandler(httpContextBuilder, httpApplicationHandler, responseHandler, _serverContext)); }