Context
Using Go context with SP client
Last updated
Was this helpful?
Using Go context with SP client
Last updated
Was this helpful?
Gosip client respects native Go , 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.
On the dealing with the contexts is identical to native approach:
While using HTTPClient, context is defined together with request config.
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.