1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-24 05:17:03 +00:00

breaking change: remove static field context.DefaultMaxMemory and replace it with a better configurable option inside the main configuration, this makes things clear and it allows users to prevent any unwanted client behavior without digging into the framework's internals

Former-commit-id: 875afd32acfab8abdea15ce9be2ad384eb6bad5e
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-27 20:42:46 +02:00
parent 6254ade603
commit 90c825efc8
5 changed files with 124 additions and 35 deletions

View File

@@ -311,6 +311,12 @@ var (
//
// Examples: https://github.com/kataras/iris/tree/master/_examples/file-server
StaticEmbeddedHandler = router.StaticEmbeddedHandler
// CopyFile copies a `context#Copiable` "file", that can be acquired by a `context.FormFile`
// as well, to the "dest".
//
// Returns the copied length as int64 and
// an error if file is not exist, or new file can't be created or closed at the end.
CopyFile = context.CopyFile
// Gzip is a middleware which enables writing
// using gzip compression, if client supports.
//