Inheritance: IHttpRequestDelegate, IRequestProcessor
Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public RequestHandlerFactory(RequestProcessor requestProcessor)
 {
     _requestProcessor = requestProcessor;
 }
Ejemplo n.º 4
0
 public RequestHandler(string path, RequestProcessor requestProcessor)
 {
     Path = path;
     RequestProcessor = requestProcessor;
     QueryParams = new Dictionary<string, string>();
 }
Ejemplo n.º 5
0
 public void WithStatus(HttpStatusCode httpStatusCode)
 {
     ResponseBuilder.WithStatus(httpStatusCode);
     RequestProcessor.Add(this);
 }
Ejemplo n.º 6
0
 public RequestHandlerFactory(RequestProcessor requestProcessor)
 {
     _requestProcessor = requestProcessor;
 }
Ejemplo n.º 7
0
 public RequestHandler(string path, RequestProcessor requestProcessor)
 {
     Path             = path;
     RequestProcessor = requestProcessor;
     QueryParams      = new Dictionary <string, string>();
 }