useserde::Deserialize;/// The request accepted by the server.
pubtraitServerRequest{/// The body of the request.
fnbody(&self)->&[u8];/// the body deserialized with [`serde_json::from_slice`].
fnbody_json<'a, T:Deserialize<'a>>(&'aself)->serde_json::Result<T>{serde_json::from_slice(self.body())}/// The header value from the given key.
fnheader(&self, key:&str)->Option<String>;}