You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: go/README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,3 +118,46 @@ func main() {
118
118
}
119
119
}
120
120
```
121
+
### Custom Context
122
+
123
+
If you want even greater control over the lifecycle of the HTTP requests consider providing a [context](https://pkg.go.dev/context). Contexts can be set for all requests or per request.
124
+
125
+
#### Custom Context for all requests
126
+
127
+
Follow the example code snippet below if you want all requests to use the same context:
Follow the example here to set a context for a specific request. **This will override any context set in the SDK config as outlined in the previous section.**
0 commit comments