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

Namui New http wrapping #932

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Namui New http wrapping #932

merged 1 commit into from
Sep 4, 2024

Conversation

namse
Copy link
Contributor

@namse namse commented Aug 31, 2024

This PR exposes http crate as interface for http request and response.
I put some Extension traits of http::Request and http::Response, so user can send and receive using that trait.

Implementation Status

Windows: need tokio update (tokio-rs/tokio#6822), because hyper-util's dns system use original tokio.
Wasi: Works well.
image

google's fail is natural because google server blocks our request by cors policy.

Additional changes

  1. new-event-system added. I will put every js-rs event things in here, including pre-made other event systems, like websocket, screen, etc.

@namse namse added the namui This issue is for namui engine label Aug 31, 2024
@namse namse self-assigned this Aug 31, 2024
@namse namse requested a review from bigfoodK September 4, 2024 16:01
@namse namse marked this pull request as ready for review September 4, 2024 16:02
Update Cargo.lock

JS side is finished. Keep going on rust side

Update Cargo.lock

Test with sample is done. need to handle error

Wire up error handling

Handle error

Windows build

Update Cargo.lock

Fix error
@namse namse force-pushed the namui/network-http branch from b9309dc to 1d9404b Compare September 4, 2024 16:06
@namse namse enabled auto-merge (squash) September 4, 2024 16:07
@namse namse merged commit 3c0b966 into master Sep 4, 2024
35 checks passed
@namse namse deleted the namui/network-http branch September 4, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
namui This issue is for namui engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants