mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 17:10:54 +00:00
add DumpRequest
This commit is contained in:
parent
d90ce15707
commit
743628a946
@ -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