It doesn't look like any of these requests support caller-defined contexts. @KnutZuidema would you support it if I opened a PR that adds ...WithContext functions for all existing API requests?
For example, I'd add GetByAccountIDWithContext(ctx context.Context, ...), GetByPUUIDWithContext(ctx context.Context, ...) etc etc for summoner routes.
I'm thinking I'd bubble that context down to a duplicate Client.DoRequestWithContext(ctx context.Context, ...) that adds a context to the request with request.WithContext
It doesn't look like any of these requests support caller-defined contexts. @KnutZuidema would you support it if I opened a PR that adds
...WithContextfunctions for all existing API requests?For example, I'd add
GetByAccountIDWithContext(ctx context.Context, ...),GetByPUUIDWithContext(ctx context.Context, ...)etc etc for summoner routes.I'm thinking I'd bubble that context down to a duplicate
Client.DoRequestWithContext(ctx context.Context, ...)that adds a context to the request withrequest.WithContext