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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bufferSize: Int
- val chunkedThreshold: Int
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val shouldGzip: (RequestHeader, Result) ⇒ Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- 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