I found this a bit confusing when I was trying to mutate the Authority for a request's URI.
Is there any particular reason why there's no set_authority, set_path, etc. on &mut Uri?
Alternatively, changing Request::uri_mut to Request::set_uri(&mut self, uri: Uri) might be clearer.
I found this a bit confusing when I was trying to mutate the
Authority
for a request's URI.Is there any particular reason why there's no
set_authority
,set_path
, etc. on&mut Uri
? Alternatively, changingRequest::uri_mut
toRequest::set_uri(&mut self, uri: Uri)
might be clearer.