X-Git-Url: http://nitlanguage.org diff --git a/lib/nitcorn/reactor.nit b/lib/nitcorn/reactor.nit index 80633b3..5bd285d 100644 --- a/lib/nitcorn/reactor.nit +++ b/lib/nitcorn/reactor.nit @@ -28,19 +28,14 @@ import http_response # A server handling a single connection class HttpServer - super Connection + super HTTPConnection # The associated `HttpFactory` var factory: HttpFactory - # Init the server using `HttpFactory`. - init(buf_ev: NativeBufferEvent, factory: HttpFactory) is old_style_init do - self.factory = factory - end - private var parser = new HttpRequestParser is lazy - redef fun read_callback(str) + redef fun read_http_request(str) do var request_object = parser.parse_http_request(str.to_s) if request_object != null then delegate_answer request_object