File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ impl Encoder {
7171impl Encoder {
7272 // Encode the headers to a buffer, the first time we poll.
7373 fn encode_start ( & mut self , cx : & mut Context < ' _ > , buf : & mut [ u8 ] ) -> Poll < io:: Result < usize > > {
74+ log:: trace!( "Server response encoding: start" ) ;
7475 self . state = EncoderState :: Head ;
7576
7677 let reason = self . res . status ( ) . canonical_reason ( ) ;
@@ -126,10 +127,12 @@ impl Encoder {
126127 Some ( body_len) => {
127128 self . body_len = body_len;
128129 self . state = EncoderState :: Body ;
130+ log:: trace!( "Server response encoding: exact size body" ) ;
129131 return self . encode_body ( cx, buf) ;
130132 }
131133 None => {
132134 self . state = EncoderState :: UncomputedChunked ;
135+ log:: trace!( "Server response encoding: chunked body" ) ;
133136 return self . encode_uncomputed_chunked ( cx, buf) ;
134137 }
135138 } ;
You can’t perform that action at this time.
0 commit comments