1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-29 14:01:29 +00:00

add DumpRequest

This commit is contained in:
astaxie 2015-04-08 22:58:37 +08:00
parent 6f6b412709
commit cc5ca458ab

View File

@ -167,6 +167,11 @@ func (b *BeegoHttpRequest) Debug(isdebug bool) *BeegoHttpRequest {
return b 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. // SetTimeout sets connect time out and read-write time out for BeegoRequest.
func (b *BeegoHttpRequest) SetTimeout(connectTimeout, readWriteTimeout time.Duration) *BeegoHttpRequest { func (b *BeegoHttpRequest) SetTimeout(connectTimeout, readWriteTimeout time.Duration) *BeegoHttpRequest {
b.setting.ConnectTimeout = connectTimeout b.setting.ConnectTimeout = connectTimeout