Context
Using Go context with SP client
Gosip client respects native Go Context, you can pass a context on a low level or to a Fluent API to control requests's deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes.
Low level client
On the low level dealing with the contexts is identical to native approach:
HTTP Client
While using HTTPClient, context is defined together with request config.
Fluent API
With Fluent API, context is managed in the same way as in the previous example with the only difference how it is chained to fluent syntax.
Conf
method can be used almost on any hierarchy level. It's inherited with capability to redefine.
Last updated