public HttpServer(Uri uri) { _uri = uri; _scheduler = KayakScheduler.Factory.Create(new SchedulerDelegate()); _requestProcessor = new RequestProcessor(new EndpointMatchingRule(), new RequestHandlerList()); _requestWasCalled = new RequestWasCalled(_requestProcessor); _requestWasNotCalled = new RequestWasNotCalled(_requestProcessor); _requestHandlerFactory = new RequestHandlerFactory(_requestProcessor); }
public RequestHandlerFactory(RequestProcessor requestProcessor) { _requestProcessor = requestProcessor; }
public RequestHandler(string path, RequestProcessor requestProcessor) { Path = path; RequestProcessor = requestProcessor; QueryParams = new Dictionary<string, string>(); }
public void WithStatus(HttpStatusCode httpStatusCode) { ResponseBuilder.WithStatus(httpStatusCode); RequestProcessor.Add(this); }
public RequestHandler(string path, RequestProcessor requestProcessor) { Path = path; RequestProcessor = requestProcessor; QueryParams = new Dictionary <string, string>(); }