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
However, I'd like to control cancelation via a context (which can be cancelled before timeout expires). Additionally, I want to control the value of the timeout.
Additional context
The text was updated successfully, but these errors were encountered:
mpstefan
added
refined
Issues that are ready to be prioritized
and removed
help wanted
Issues identified as good community contribution opportunities
labels
Jul 17, 2024
Is your feature request related to a problem? Please describe.
As a developer, I'd like to be able to cancel any call I make to NGINX Plus API.
This is required for my software for:
Describe the solution you'd like
Using Context https://pkg.go.dev/context#Context is common for that.
func (client *NginxClient) AddHTTPServer(upstream string, server UpstreamServer) error {
Describe alternatives you've considered
There is hard-corded timeout that internally creates a context that ensures that a request to NGINX Plus API can't take longer than 10s.
nginx-plus-go-client/client/nginx.go
Line 855 in 970573b
However, I'd like to control cancelation via a context (which can be cancelled before timeout expires). Additionally, I want to control the value of the timeout.
Additional context
The text was updated successfully, but these errors were encountered: