From 394268529f92f715dd0eae094ff4b7362e1a7162 Mon Sep 17 00:00:00 2001 From: roc Date: Fri, 16 Jun 2023 12:00:27 +0800 Subject: [PATCH] add comments to SetContext --- request.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/request.go b/request.go index 8fdf5daa..8c738fc3 100644 --- a/request.go +++ b/request.go @@ -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