Package com.linecorp.armeria.spring
Class ArmeriaSettings.Compression
java.lang.Object
com.linecorp.armeria.spring.ArmeriaSettings.Compression
- Enclosing class:
- ArmeriaSettings
Configurations for the HTTP content encoding.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the"user-agent"
header values which are not applicable for the HTTP content encoding.String[]
Returns the MIME Types of an HTTP response which are applicable for the HTTP content encoding.Returns the minimum bytes for encoding the content of an HTTP response.boolean
Returnstrue
if the HTTP content encoding is enabled.void
setEnabled
(boolean enabled) Sets whether the HTTP content encoding is enabled.void
setExcludedUserAgents
(String[] excludedUserAgents) Sets the"user-agent"
header values which are not applicable for the HTTP content encoding.void
setMimeTypes
(String[] mimeTypes) Sets the MIME Types of an HTTP response which are applicable for the HTTP content encoding.void
setMinResponseSize
(String minResponseSize) Sets the minimum bytes for encoding the content of an HTTP response.
-
Constructor Details
-
Compression
public Compression()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returnstrue
if the HTTP content encoding is enabled. -
setEnabled
public void setEnabled(boolean enabled) Sets whether the HTTP content encoding is enabled. -
getMimeTypes
Returns the MIME Types of an HTTP response which are applicable for the HTTP content encoding. -
setMimeTypes
Sets the MIME Types of an HTTP response which are applicable for the HTTP content encoding. -
getExcludedUserAgents
Returns the"user-agent"
header values which are not applicable for the HTTP content encoding. -
setExcludedUserAgents
Sets the"user-agent"
header values which are not applicable for the HTTP content encoding. -
getMinResponseSize
Returns the minimum bytes for encoding the content of an HTTP response. -
setMinResponseSize
Sets the minimum bytes for encoding the content of an HTTP response.
-