Class EncodingService

All Implemented Interfaces:
Unwrappable, HttpService, Service<HttpRequest,​HttpResponse>

public final class EncodingService
extends SimpleDecoratingHttpService
Decorates an HttpService to apply HTTP encoding (e.g., gzip) to an HttpService. HTTP encoding will be applied if:
  • the client specifies it
  • the response content type is encodable
  • the request headers are acceptable
  • the response either has no fixed content length or the length is larger than 1KB