I - The type of objects received as content from the request.O - The type of objects written as content from the response.public interface RequestHandler<I,O>
HttpServerRequest to produce a HttpServerResponse| Modifier and Type | Method and Description |
|---|---|
rx.Observable<java.lang.Void> |
handle(HttpServerRequest<I> request,
HttpServerResponse<O> response)
Provides a request and response pair to process.
|
rx.Observable<java.lang.Void> handle(HttpServerRequest<I> request, HttpServerResponse<O> response)
request - Http request to process.response - Http response to populate after processing the request.Observable that represents the processing of the request. Subscribing to this should start
the request processing and unsubscribing should cancel the processing.