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

Fix issues with Request.clone in http types #440

Merged
merged 7 commits into from
Mar 11, 2024

Conversation

kflansburg
Copy link
Contributor

No description provided.

@@ -30,3 +30,6 @@ lto = true
[profile.release.package."*"]
codegen-units = 1
opt-level = "z"

[workspace.dependencies]
wasm-bindgen = "=0.2.87"
Copy link
Contributor Author

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::{
Copy link
Contributor Author

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"
Copy link
Contributor Author

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,
Copy link
Contributor Author

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

worker/src/http/request.rs Show resolved Hide resolved
* 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.
@kflansburg kflansburg merged commit 65454ee into zeb/http-types Mar 11, 2024
3 checks passed
@kflansburg kflansburg deleted the kflansburg/http branch March 11, 2024 15:10
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