1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-07 12:07:28 +00:00

Nothing crazy, yet. Add an iris.StaticEmbeddedHandler shortcut of router.StaticEmbeddedHandler and extend the configuration's tests

Former-commit-id: 7a105c12ffe08f071bff2c212f96d648ed58c542
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-10-22 01:12:12 +03:00
parent 7372cfe38d
commit f95986d0c0
3 changed files with 78 additions and 4 deletions

View File

@@ -303,6 +303,12 @@ var (
//
// A shortcut for the `context#LimitRequestBodySize`.
LimitRequestBodySize = context.LimitRequestBodySize
// StaticEmbeddedHandler returns a Handler which can serve
// embedded into executable files.
//
//
// Examples: https://github.com/kataras/iris/tree/master/_examples/file-server
StaticEmbeddedHandler = router.StaticEmbeddedHandler
// Gzip is a middleware which enables writing
// using gzip compression, if client supports.
//