Skip to content

Commit

Permalink
feat(http): refactor and improvements (#428)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
amrbashir and lucasfernog authored Aug 7, 2023
1 parent 7f2e2dd commit 7d9df72
Show file tree
Hide file tree
Showing 14 changed files with 742 additions and 1,006 deletions.
5 changes: 5 additions & 0 deletions .changes/http-multipart-refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"http-js": minor
---

Multipart requests are now handled in JavaScript by the `Request` JavaScript class so you just need to use a `FormData` body and not set the content-type header to `multipart/form-data`. `application/x-www-form-urlencoded` requests must be done manually.
6 changes: 6 additions & 0 deletions .changes/http-plugin-refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"http": minor
"http-js": minor
---

The http plugin has been rewritten from scratch and now only exposes a `fetch` function in Javascript and Re-exports `reqwest` crate in Rust. The new `fetch` method tries to be as close and compliant to the `fetch` Web API as possible.
Loading

0 comments on commit 7d9df72

Please sign in to comment.