Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make StatusCode implement Serialize and Deserialize #273

Open
thomaseizinger opened this issue Nov 4, 2018 · 2 comments · May be fixed by #274
Open

Make StatusCode implement Serialize and Deserialize #273

thomaseizinger opened this issue Nov 4, 2018 · 2 comments · May be fixed by #274
Labels
B-rfc Blocked: request for comments. More discussion would help move this along.

Comments

@thomaseizinger
Copy link

thomaseizinger commented Nov 4, 2018

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 :(

@thomaseizinger thomaseizinger linked a pull request Nov 5, 2018 that will close this issue
@seanmonstar seanmonstar added the B-rfc Blocked: request for comments. More discussion would help move this along. label Apr 5, 2019
@seanmonstar seanmonstar added this to the 0.2 milestone May 30, 2019
@seanmonstar seanmonstar removed this from the 0.2 milestone Dec 2, 2019
@kornelski
Copy link

I've implemented this:

https://lib.rs/http-serde

@andrewtoth
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-rfc Blocked: request for comments. More discussion would help move this along.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants