Skip to content

Commit

Permalink
Seanaye/feat/serverside http (#312)
Browse files Browse the repository at this point in the history
* add writable response struct

* add readable request

* run cargo fmt

* fix gloo_net tests

* refactor request and response with builder pattern

* fix clippy and fmt

* fix tests

* Update crates/net/src/http/response.rs

Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>

* rename responsebuilder requestbuilder

* run cargo fmt

* fix clippy errors

* expose response body enum

* implement PR comments

change to finish_non_exhaustive

run cargo fmt

remove config.toml

revert formatting

add back missing feature

* Improve docs

Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>

* run cargo fmt

---------

Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
  • Loading branch information
seanaye and futursolo committed May 2, 2023
1 parent a89e84b commit edf4464
Show file tree
Hide file tree
Showing 6 changed files with 659 additions and 429 deletions.
2 changes: 2 additions & 0 deletions crates/net/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ serde_json = { version = "1.0", optional = true }

futures-channel = { version = "0.3", optional = true }
pin-project = { version = "1.0", optional = true }
http = "0.2.9"

[dev-dependencies]
wasm-bindgen-test = "0.3"
Expand Down Expand Up @@ -70,6 +71,7 @@ http = [
'web-sys/RequestInit',
'web-sys/RequestMode',
'web-sys/Response',
'web-sys/ResponseInit',
'web-sys/ResponseType',
'web-sys/Window',
'web-sys/RequestCache',
Expand Down

0 comments on commit edf4464

Please sign in to comment.