mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 20:20:56 +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