Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow context aware requests #73

Closed
wants to merge 1 commit into from
Closed

Conversation

rsj-ioki
Copy link

@rsj-ioki rsj-ioki commented Aug 8, 2022

Here we introduce RequestWithContext() and ReceiveWithContext()
method which allow consumers to pass in a context. This is useful
for working with HTTP requests where the consumer might want
to control request lifetime via a context.

@rsj-ioki rsj-ioki marked this pull request as draft August 8, 2022 22:41
@rsj-ioki rsj-ioki force-pushed the with-context branch 3 times, most recently from cd756b1 to 31a20d5 Compare August 9, 2022 08:03
@rsj-ioki rsj-ioki marked this pull request as ready for review August 9, 2022 08:03
@rsj-ioki
Copy link
Author

can some one at least approve workflow on this? @dghubble ?

@michalkurzeja
Copy link

This is exactly the feature that I miss dearly in sling. It would greatly improve the dev-ex when using this lib.

@rsj-ioki
Copy link
Author

@michalkurzeja also look at rsj-ioki@683b46a

I am trying to maintain above fork but would be happy to contribute back to this repo. Hope @dghubble allows other maintainers for this repo at some point.

@a-urth
Copy link

a-urth commented Jun 26, 2023

Plus one to this. There is no reason to not have this feature.

Here we introduce RequestWithContext() and ReceiveWithContext()
method which allow consumers to pass in a context. This is useful
for working with HTTP requests where the consumer might want
to control request lifetime via a context.
@rsj-ioki
Copy link
Author

Closing as changes are now part of newly maintained hard fork https://github.com/rsjethani/rsling

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.

3 participants