Skip to content

Commit

Permalink
add comments to SetContext
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Jun 16, 2023
1 parent a6ae22b commit 3942685
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,9 @@ func (r *Request) Context() context.Context {
// to interrupt the request execution if ctx.Done() channel is closed.
// See https://blog.golang.org/context article and the "context" package
// documentation.
//
// Attention: make sure call SetContext before EnableDumpXXX if you want to
// dump at the request level.
func (r *Request) SetContext(ctx context.Context) *Request {
if ctx != nil {
r.ctx = ctx
Expand Down

0 comments on commit 3942685

Please sign in to comment.