Skip to content

Commit

Permalink
Introduce http feature for http crate types (#477)
Browse files Browse the repository at this point in the history
* http 1.1

* http feature flag

* Fetcher http flag

* Implement todos

* Implement redirect / ws / abort signal

* Add http tests to CI

* Add Cf context to http::Request

* Fix test working directories

* Axum example

* fix clippy in CI

* Handle generic http_body return type

* Documentation

* Remove unwraps

* Tweak introduction version in docs

* Final touches
  • Loading branch information
kflansburg authored Mar 15, 2024
1 parent cfaabb5 commit b2aabc1
Show file tree
Hide file tree
Showing 36 changed files with 1,119 additions and 700 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ jobs:
run: cargo fmt --all -- --check

- name: Check for idiomatic code
run: cargo clippy --all-features --all-targets --all -- -D warnings
run: cargo clippy --features d1,queue --all-targets --workspace -- -D warnings

- name: Check for idiomatic code (http)
run: cargo clippy --all-features --package worker-sandbox --all-targets -- -D warnings
test:
name: Test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -70,12 +73,10 @@ jobs:
shell: bash
run: npm ci

- name: Build worker
shell: bash
working-directory: ./worker-sandbox
run: NO_MINIFY=1 worker-build --dev

- name: Run tests
shell: bash
working-directory: ./worker-sandbox
run: NODE_OPTIONS=--experimental-vm-modules npx vitest run
run: npm run test

- name: Run tests (http)
shell: bash
run: npm run test-http
Loading

0 comments on commit b2aabc1

Please sign in to comment.