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

Simplify body & header callbacks #9

Open
bluesmoon opened this issue Apr 1, 2024 · 0 comments
Open

Simplify body & header callbacks #9

bluesmoon opened this issue Apr 1, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bluesmoon
Copy link
Owner

bluesmoon commented Apr 1, 2024

curl_write_cb and curl_header_cb both assume that the data passed in as context will be a Channel and write appropriate objects to it.

We can simplify this logic by passing in a Julia function that accepts the data as its first argument and any context as a second argument. Callers could then do their own data handling without waiting for the intermediate Channel processing.

Note: This extends the request from #7

@bluesmoon bluesmoon self-assigned this Apr 1, 2024
@bluesmoon bluesmoon added the enhancement New feature or request label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant