public RequestResponseHandler(HttpContextBuilder httpContextBuilder, HttpApplicationHandler httpApplicationHandler, ResponseHandler responseHandler, ServerContext serverContext)
 {
     _httpContextBuilder     = httpContextBuilder;
     _httpApplicationHandler = httpApplicationHandler;
     _responseHandler        = responseHandler;
     _serverContext          = serverContext;
 }
 public RequestResponseHandler(HttpContextBuilder httpContextBuilder, HttpApplicationHandler httpApplicationHandler, ResponseHandler responseHandler, ServerContext serverContext)
 {
     _httpContextBuilder = httpContextBuilder;
     _httpApplicationHandler = httpApplicationHandler;
     _responseHandler = responseHandler;
     _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);
        }
Example #4
0
        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));
        }