From 21801022f6d319444fa4c720ad4ec18b662d6642 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 2 Aug 2023 13:14:49 -0300 Subject: [PATCH] update change files --- .changes/http-multipart-refactor.md | 5 +++++ .changes/http-plugin-refactor.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/http-multipart-refactor.md diff --git a/.changes/http-multipart-refactor.md b/.changes/http-multipart-refactor.md new file mode 100644 index 00000000..562943d5 --- /dev/null +++ b/.changes/http-multipart-refactor.md @@ -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. diff --git a/.changes/http-plugin-refactor.md b/.changes/http-plugin-refactor.md index 7beb4aff..ff089543 100644 --- a/.changes/http-plugin-refactor.md +++ b/.changes/http-plugin-refactor.md @@ -3,4 +3,4 @@ "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. +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.