Closed pepoviola closed 3 years ago
Also ref #99
Hi @yoshuawuyts, Thanks for the feedback! I make some of the required changes ( the small ones ) and also change the struct to use Url
type internally.
I'm not sure if this is ok, since an invalid base_url should return a 400
error right?
let base = base_url.try_into().expect("Could not convert into a valid url");
let url = base.join(value.as_str().trim()).status(400)?;
Again thanks for the feedback, and let me know if the approach isn't good.
Thanks @Fishrock123! I will open the pr for review 👍
awesome!, thanks for the guide and all the help!! 🙌
Hi All, this is an attempt to make my small contribution to this awesome project 🙌 . This PR is inspired by https://github.com/http-rs/http-types/pull/253 ( I try to following the same approach ) and also ref to one of the headers listed on #99.
I have some question related to the field for the
ContentLocation
struct. Is ok to be aString
and parse with theUrl
crate or is better to use another type ( like to be directly anurl
and just format in thevalue
) ?I'm new to rust and my code could be partial ( or totally 😄 ) wrong, so any feedback is welcome.