mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 12:57:05 +00:00
examples: replace all app.Run(iris.Addr(...)) with app.Listen just for the shake of simplicity, both are doing the same exact thing as it's described on the http listening first example.
Former-commit-id: d20afb2e899aee658a8e0ed1693357798df93462
This commit is contained in:
@@ -218,7 +218,7 @@ func TestGetBindingsForFunc(t *testing.T) {
|
||||
// test explicitly of http.Header and its underline type map[string][]string which
|
||||
// but shouldn't be binded to request headers because of the (.Explicitly()), instead
|
||||
// the map should be binded to our last of "deps" which is is a dynamic functions reads from request body's JSON
|
||||
// (it's a builtin dependency as well but we delcared it to test user dynamic dependencies too).
|
||||
// (it's a builtin dependency as well but we declared it to test user dynamic dependencies too).
|
||||
{ // 13
|
||||
Func: func(http.Header) testResponse {
|
||||
return testResponse{"builtin http.Header dep"}
|
||||
|
||||
Reference in New Issue
Block a user