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 {
71
71
impl Encoder {
72
72
// Encode the headers to a buffer, the first time we poll.
73
73
fn encode_start ( & mut self , cx : & mut Context < ' _ > , buf : & mut [ u8 ] ) -> Poll < io:: Result < usize > > {
74
+ log:: trace!( "Server response encoding: start" ) ;
74
75
self . state = EncoderState :: Head ;
75
76
76
77
let reason = self . res . status ( ) . canonical_reason ( ) ;
@@ -126,10 +127,12 @@ impl Encoder {
126
127
Some ( body_len) => {
127
128
self . body_len = body_len;
128
129
self . state = EncoderState :: Body ;
130
+ log:: trace!( "Server response encoding: exact size body" ) ;
129
131
return self . encode_body ( cx, buf) ;
130
132
}
131
133
None => {
132
134
self . state = EncoderState :: UncomputedChunked ;
135
+ log:: trace!( "Server response encoding: chunked body" ) ;
133
136
return self . encode_uncomputed_chunked ( cx, buf) ;
134
137
}
135
138
} ;
You can’t perform that action at this time.
0 commit comments