@FunctionalInterface public interface HttpService extends Service<HttpRequest,HttpResponse>
Service
.
This interface is merely a shortcut to Service<HttpRequest, HttpResponse>
at the moment.
Modifier and Type | Method and Description |
---|---|
HttpResponse |
serve(ServiceRequestContext ctx,
HttpRequest req)
Serves an incoming
Request . |
HttpResponse serve(ServiceRequestContext ctx, HttpRequest req) throws java.lang.Exception
Service
Request
.serve
in interface Service<HttpRequest,HttpResponse>
ctx
- the context of the received Request
req
- the received Request
Response
java.lang.Exception