mirror of
https://github.com/astaxie/beego.git
synced 2024-11-29 14:01:29 +00:00
add DumpRequest
This commit is contained in:
parent
6f6b412709
commit
cc5ca458ab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user