Documentation
¶
Overview ¶
Package compress gzips a Tern app's dynamic responses (pages, data, endpoint JSON) for clients that accept it:
ternApp(kit.WithPlugins(compress.New()))
Static assets are already precompressed by tern build and are left alone. Flushes pass through, so streamed data still arrives as soon as it resolves.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Plugin)
Option configures the plugin.
Click to show internal directories.
Click to hide internal directories.