@@ -49,17 +49,17 @@ impl Session {
4949 }
5050 }
5151
52- /// Creates a PUT request for a [`Bytes`]-like type .
52+ /// Creates or replaces an object using a [`Bytes`]-like payload .
5353 pub fn put ( & self , body : impl Into < Bytes > ) -> PutBuilder {
5454 self . put_body ( PutBody :: Buffer ( body. into ( ) ) )
5555 }
5656
57- /// Creates a PUT request with a stream .
57+ /// Creates or replaces an object using a streaming payload .
5858 pub fn put_stream ( & self , body : ClientStream ) -> PutBuilder {
5959 self . put_body ( PutBody :: Stream ( body) )
6060 }
6161
62- /// Creates a PUT request with an [`AsyncRead`] type .
62+ /// Creates or replaces an object using an [`AsyncRead`] payload .
6363 pub fn put_read < R > ( & self , body : R ) -> PutBuilder
6464 where
6565 R : AsyncRead + Send + Sync + ' static ,
@@ -69,7 +69,7 @@ impl Session {
6969 }
7070}
7171
72- /// A PUT request builder.
72+ /// A [`put`](Session::put) request builder.
7373#[ derive( Debug ) ]
7474pub struct PutBuilder {
7575 session : Session ,
@@ -136,7 +136,7 @@ impl PutBuilder {
136136// However, `IntoFuture` needs to define the resulting future as an associated type,
137137// and "impl trait in associated type position" is not yet stable :-(
138138impl PutBuilder {
139- /// Sends the built PUT request to the upstream service.
139+ /// Sends the built put request to the upstream service.
140140 pub async fn send ( self ) -> crate :: Result < PutResponse > {
141141 let method = match self . key {
142142 Some ( _) => reqwest:: Method :: PUT ,
0 commit comments