@FunctionalInterface public interface DecoratingHttpServiceFunction
SimpleDecoratingHttpService with
HttpService.decorate(DecoratingHttpServiceFunction).| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
serve(HttpService delegate,
ServiceRequestContext ctx,
HttpRequest req)
Serves an incoming
HttpRequest. |
HttpResponse serve(HttpService delegate, ServiceRequestContext ctx, HttpRequest req) throws Exception
HttpRequest.delegate - the HttpService being decorated by this functionctx - the context of the received HttpRequestreq - the received HttpRequestHttpResponseExceptionCopyright © 2020 LeanCloud. All rights reserved.