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

Add http client & example #2

Merged
merged 14 commits into from
Dec 28, 2023
Merged

Add http client & example #2

merged 14 commits into from
Dec 28, 2023

Conversation

sleeyax
Copy link
Owner

@sleeyax sleeyax commented Dec 28, 2023

Added a simple initial 'blocking' HTTP client implementation. The client is blocking in the sense that it uses a channel to wait for a response from the engine. But keep in mind that the cronet engine by itself internally already handles things asynchronously via callbacks. That being said, a proper async client implementation is still warranted #3.

The client feature is enabled by default in cargo.toml and can be disabled by advanced users who only wish to use the raw bindings or create a custom client wrapper.

src/client/response_handler.rs Fixed Show fixed Hide fixed
src/url_response_info.rs Fixed Show fixed Hide fixed
@sleeyax sleeyax changed the title Add http client example Add http client & example Dec 28, 2023
@sleeyax sleeyax merged commit e6869e1 into main Dec 28, 2023
4 checks passed
@sleeyax sleeyax deleted the develop branch December 28, 2023 22:16
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