http icon indicating copy to clipboard operation
http copied to clipboard

Add Serde support for Request and Response

Open KaiserKarel opened this issue 5 years ago • 2 comments

I need to log requests and responses using a structured logger. Having serde behind a feature would help a lot with that. I think these structs are quite fundamental datatypes, and that more users would probably want to store/log them somehow.

KaiserKarel avatar Feb 18 '20 00:02 KaiserKarel

Have you tried this crate : https://crates.io/crates/http-serde ?

(I don't, I was just passing by and I saw ~light~ your issue :blush:)

chapa avatar Mar 21 '20 21:03 chapa

I wrote a crate that lets you serialize and deserialize Request and Response types, as well as the rest of the types. https://crates.io/crates/http-serde-ext

andrewtoth avatar Oct 21 '23 23:10 andrewtoth