http
http copied to clipboard
Make `StatusCode` implement `Serialize` and `Deserialize`
It would be nice if the http
crate would have a serde
feature that makes things like StatusCode
serializable.
I am currently in the progress of refactoring the http-api-problem
crate to use the http
crate and I cannot really continue because StatusCode
is not serializable :(
I've implemented this:
https://lib.rs/http-serde
I wrote a crate that makes all serde types serializable (including Request/Response) as well as wrapping in Option and other std::collection
types.
https://crates.io/crates/http-serde-ext