1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-11 14:05:59 +00:00
Files
kararas_iris/config/server.go
Gerasimos Maropoulos 3c50d26808 Add easy way to set Read/WriteTimeout instead of http://targetliu.com/golang-iriszhong-tong-guo-pluginshe-zhi-httpchao-shi-shi-jian/
Instead of this article, I just found, shows you how to inject the main
server, now you can just use the:
iris.ListenTo(config.Server{WriteTimeout: 5* time.Second, ReadTimeout=
5*time.Second, ListeningAddr:":8080"})
2016-08-05 08:44:52 +03:00

5.8 KiB