mirror of
https://github.com/kataras/iris.git
synced 2026-01-25 04:45:57 +00:00
add test for hero/Container.UseResultHandler
Former-commit-id: 8954541f8da055f30965cce07a85f485580fee48
This commit is contained in:
@@ -155,8 +155,8 @@ func (c *Container) Register(dependency interface{}) *Dependency {
|
||||
}
|
||||
|
||||
// UseResultHandler adds a result handler to the Container.
|
||||
// A result handler can be used to inject the struct value
|
||||
// or to replace the default renderer.
|
||||
// A result handler can be used to inject the returned struct value
|
||||
// from a request handler or to replace the default renderer.
|
||||
func (c *Container) UseResultHandler(handler func(next ResultHandler) ResultHandler) *Container {
|
||||
c.resultHandlers = append(c.resultHandlers, handler)
|
||||
return c
|
||||
|
||||
Reference in New Issue
Block a user