Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
lixizan committed Nov 17, 2023
2 parents 33add33 + 1cdcf83 commit a62001c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ func WithHTTPClient(client *http.Client) Option {
}
}

// WithReuseBody 开启body复用; Response.Body可以被断言为BytesReadCloser, 重复调用Bytes()方法.
// Enable body reuse; Response.Body can be asserted as a BytesReadCloser, calling the Bytes() method repeatedly.
// WithReuseBody 开启Body可重复读; Response.Body可以被断言为BytesReadCloser, 调用Bytes()方法重复读取.
// Turn on Body repeatable read; Response.Body can be asserted as BytesReadCloser, call Bytes() method to repeat reads.
func WithReuseBody() Option {
return func(c *config) {
c.ReuseBodyEnabled = true
Expand Down

0 comments on commit a62001c

Please sign in to comment.