mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
Update to 4.2.0 - Configuration changes (big but old way still works, naming changes) & Implement https://github.com/kataras/iris/issues/409
This commit is contained in:
@@ -184,6 +184,10 @@ type responseEngines struct {
|
||||
engines []*responseEngineMap
|
||||
}
|
||||
|
||||
func newResponseEngines() *responseEngines {
|
||||
return &responseEngines{}
|
||||
}
|
||||
|
||||
// add accepts a simple response engine with its content type or key, key should not contains a dot('.').
|
||||
// if key is a content type then it's the content type, but if it not, set the content type from the returned function,
|
||||
// if it not called/changed then the default content type text/plain will be used.
|
||||
|
||||
Reference in New Issue
Block a user