mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 14:11:28 +00:00
Update README
This commit is contained in:
parent
e70537f8b3
commit
6ae8bc1a16
@ -33,6 +33,7 @@ The default timeout is `60` seconds, function prototype:
|
|||||||
SetTimeout(connectTimeout, readWriteTimeout time.Duration)
|
SetTimeout(connectTimeout, readWriteTimeout time.Duration)
|
||||||
|
|
||||||
Exmaple:
|
Exmaple:
|
||||||
|
|
||||||
// GET
|
// GET
|
||||||
httplib.Get("http://beego.me/").SetTimeout(100 * time.Second, 30 * time.Second)
|
httplib.Get("http://beego.me/").SetTimeout(100 * time.Second, 30 * time.Second)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user