Наследование: IRequestHandler, IRequestStub
Пример #1
0
 public void Add(RequestHandler requestHandler)
 {
     _handlers.Add(requestHandler);
 }
Пример #2
0
 private RequestHandler CreateHandler(string path, string method)
 {
     string cleanedPath = path;
     var requestHandler = new RequestHandler(cleanedPath, _requestProcessor) {Method = method};
     return requestHandler;
 }
Пример #3
0
 private static IDataProducer GetDataProducer(HttpRequestHead request, RequestHandler handler)
 {
     return request.Method != "HEAD" ? handler.ResponseBuilder.BuildBody(request.Headers) : null;
 }
Пример #4
0
 public void Add(RequestHandler requestHandler)
 {
     _handlers.Add(requestHandler);
 }