1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 13:50:50 +00:00

add DumpRequest

This commit is contained in:
astaxie 2015-04-08 22:58:37 +08:00
parent d90ce15707
commit 743628a946

View File

@ -167,6 +167,11 @@ func (b *BeegoHttpRequest) Debug(isdebug bool) *BeegoHttpRequest {
return b
}
// return the DumpRequest
func (b *BeegoHttpRequest) DumpRequest() {
return httputil.DumpRequest(b.req, true)
}
// SetTimeout sets connect time out and read-write time out for BeegoRequest.
func (b *BeegoHttpRequest) SetTimeout(connectTimeout, readWriteTimeout time.Duration) *BeegoHttpRequest {
b.setting.ConnectTimeout = connectTimeout