case class GzipFilterConfig(bufferSize: Int = 8192, chunkedThreshold: Int = 102400, shouldGzip: (RequestHeader, Result) ⇒ Boolean = (_, _) => true) extends Product with Serializable
Configuration for the gzip filter
- bufferSize
The size of the buffer to use for gzipping.
- chunkedThreshold
The content length threshold, after which the filter will switch to chunking the result.
- shouldGzip
Whether the given request/result should be gzipped. This can be used, for example, to implement black/white lists for gzipping by content type.
- Source
- GzipFilter.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- GzipFilterConfig
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new GzipFilterConfig()
-
new
GzipFilterConfig(bufferSize: Int = 8192, chunkedThreshold: Int = 102400, shouldGzip: (RequestHeader, Result) ⇒ Boolean = (_, _) => true)
- bufferSize
The size of the buffer to use for gzipping.
- chunkedThreshold
The content length threshold, after which the filter will switch to chunking the result.
- shouldGzip
Whether the given request/result should be gzipped. This can be used, for example, to implement black/white lists for gzipping by content type.
Value Members
- val bufferSize: Int
- val chunkedThreshold: Int
- val shouldGzip: (RequestHeader, Result) ⇒ Boolean
- def withBufferSize(size: Int): GzipFilterConfig
- def withChunkedThreshold(threshold: Int): GzipFilterConfig
- def withShouldGzip(shouldGzip: BiFunction[RequestHeader, Result, Boolean]): GzipFilterConfig
- def withShouldGzip(shouldGzip: (RequestHeader, Result) ⇒ Boolean): GzipFilterConfig