public void Add(RequestHandler requestHandler) { _handlers.Add(requestHandler); }
private RequestHandler CreateHandler(string path, string method) { string cleanedPath = path; var requestHandler = new RequestHandler(cleanedPath, _requestProcessor) {Method = method}; return requestHandler; }
private static IDataProducer GetDataProducer(HttpRequestHead request, RequestHandler handler) { return request.Method != "HEAD" ? handler.ResponseBuilder.BuildBody(request.Headers) : null; }