Right now, there are various options exposed on the generated client such as timeout and retries. Sometimes it would be nice to set these options different for a single request. To do that now, it requires either creating a new client, or temporarily setting the options on the existing client (which doesn't play well if that client is shared across go-routines, for example).
Two example patterns of ways to implement this:
Right now, there are various options exposed on the generated client such as timeout and retries. Sometimes it would be nice to set these options different for a single request. To do that now, it requires either creating a new client, or temporarily setting the options on the existing client (which doesn't play well if that client is shared across go-routines, for example).
Two example patterns of ways to implement this: