public final class EncodingService extends SimpleDecoratingHttpService
HttpService to apply HTTP encoding (e.g., gzip) to an HttpService.
HTTP encoding will be applied if:
| Modifier and Type | Method and Description |
|---|---|
static EncodingServiceBuilder |
builder()
Returns a new
EncodingServiceBuilder. |
static Function<? super HttpService,EncodingService> |
newDecorator()
Returns a new
HttpService decorator. |
HttpResponse |
serve(ServiceRequestContext ctx,
HttpRequest req)
Serves an incoming
Request. |
serviceAdded, shouldCachePathas, delegate, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecorate, decorateas, decorate, serviceAdded, shouldCachePathpublic static EncodingServiceBuilder builder()
EncodingServiceBuilder.public static Function<? super HttpService,EncodingService> newDecorator()
HttpService decorator.public HttpResponse serve(ServiceRequestContext ctx, HttpRequest req) throws Exception
ServiceRequest.Copyright © 2020 LeanCloud. All rights reserved.