1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-05 02:00:54 +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 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