Skip to content

Conversation

@kedric
Copy link

@kedric kedric commented Jul 28, 2023

Add shorthand context at request level by duplicate two methods:

  • Receive(successV, failureV interface{}) -> ReceiveContext(ctx context.Context, successV, failureV interface{})
  • ReceiveSuccess(successV interface{}) (*http.Response, error) -> ReceiveSuccessContext(ctx context.Context, successV interface{})

They have same principe but call req.WithContext(ctx) before Do(req, successV, failureV)

@kedric
Copy link
Author

kedric commented Jul 28, 2023

Duplicate from #73

@kedric kedric closed this Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant