Skip to content

Commit

Permalink
feat(middleware): add request ctx setter
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev committed Oct 23, 2023
1 parent 1b0c784 commit 6b65653
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type Request struct {
Raw *http.Request
}

// SetContext sets Context in Request.
func (r *Request) SetContext(ctx context.Context) {
r.Context = ctx
}
Expand Down

0 comments on commit 6b65653

Please sign in to comment.