Add serialization for JSON and form bodies in post (#4764)

* Add serialization for JSON and form bodies in `post`

* Reuse code from `to json` instead of duplicating

* Fix formatting. Oops
This commit is contained in:
Genna Wingert
2022-03-07 17:49:45 +01:00
committed by GitHub
parent a2723c2ba4
commit 0a95bc7e60
3 changed files with 44 additions and 3 deletions

View File

@ -22,3 +22,5 @@ pub use nuon::ToNuon;
pub use tsv::ToTsv;
pub use xml::ToXml;
pub use yaml::ToYaml;
pub(crate) use json::value_to_json_value;