-
Notifications
You must be signed in to change notification settings - Fork 300
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
Fix issues with Request.clone in http types #440
Conversation
2dae0d2
to
e7caadc
Compare
@@ -30,3 +30,6 @@ lto = true | |||
[profile.release.package."*"] | |||
codegen-units = 1 | |||
opt-level = "z" | |||
|
|||
[workspace.dependencies] | |||
wasm-bindgen = "=0.2.87" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it will be easier to set this at the workspace level.
@@ -10,7 +10,11 @@ use std::{ | |||
use router_service::unsync::Router; | |||
use serde::{Deserialize, Serialize}; | |||
use tower::Service; | |||
use worker::{body::Body, http::{Response, HttpClone, RequestRedirect}, *}; | |||
use worker::{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran cargo fmt
wasm-bindgen-futures = "0.4.36" | ||
serde-wasm-bindgen = "0.5.0" | ||
wasm-streams = "0.3.0" | ||
wasm-streams = "0.4.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This had to be bumped due to incompatibility in ReadableStream types in the prior version (now re-exports web_sys types).
crate::body::BodyInner::Regular(s) => Some( | ||
wasm_streams::ReadableStream::from_async_read( | ||
crate::body::BoxBodyReader::new(s), | ||
1024, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idk what to set this default buffer size to
* Added test script to package.json. * Added worker-sandbox r2 routes. * Added worker-build to the npm test script. * Added worker-sandbox r2 routes - cleanup. * Added worker-sandbox queue routes. * Added worker-sandbox service-bindings routes - implied porting and adapting some improvements from the latest version. * Added worker-sandbox service-bindings routes - implied porting and adapting some improvements from the latest version - fmt. * Added worker-sandbox cache stream route - Implied porting some more recent stuff. * Added worker-sandbox remaining cache routes. * Added worker-sandbox init called route. * Added worker-sandbox custom-response-body route. * Added worker-sandbox now route. * Added worker-sandbox redirect-307 route. * Added worker-sandbox redirect-default route. * Added worker-sandbox subrequests routes and fetch helpers that were requeried. * Added worker-sandbox subrequests fetch-timeout to be shorter. * Added worker-sandbox request catchall fixed test case. * Added worker-sandbox request xor route. * Added worker-sandbox request xor route. * Added worker-sandbox websocket route. * worker-sandbox queue routes clean up. * worker unused dependencies clean up. * worker-sandbox: Added missing d1 routes and improved d1 tests to use miniflare. * worker-sandbox: Clippy. * worker-sandbox: fmt.
No description provided.