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:
6
iris.go
6
iris.go
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user