@@ -23,7 +23,6 @@ impl Http1Transaction for ServerTransaction {
23
23
if buf. len ( ) == 0 {
24
24
return Ok ( None ) ;
25
25
}
26
- trace ! ( "parse({:?})" , buf) ;
27
26
let mut headers_indices = [ HeaderIndices {
28
27
name : ( 0 , 0 ) ,
29
28
value : ( 0 , 0 )
@@ -34,7 +33,7 @@ impl Http1Transaction for ServerTransaction {
34
33
let mut req = httparse:: Request :: new ( & mut headers) ;
35
34
match try!( req. parse ( & buf) ) {
36
35
httparse:: Status :: Complete ( len) => {
37
- trace ! ( "httparse Complete({})" , len) ;
36
+ trace ! ( "Request.parse Complete({})" , len) ;
38
37
let method = try!( req. method . unwrap ( ) . parse ( ) ) ;
39
38
let path = req. path . unwrap ( ) ;
40
39
let bytes_ptr = buf. as_ref ( ) . as_ptr ( ) as usize ;
@@ -110,11 +109,9 @@ impl Http1Transaction for ServerTransaction {
110
109
111
110
112
111
fn encode ( mut head : MessageHead < Self :: Outgoing > , has_body : bool , method : & mut Option < Method > , dst : & mut Vec < u8 > ) -> Encoder {
113
- trace ! ( "ServerTransaction::encode head={:?}, has_body={}, method={:?}" ,
114
- head, has_body, method) ;
112
+ trace ! ( "ServerTransaction::encode has_body={}, method={:?}" , has_body, method) ;
115
113
116
114
let body = ServerTransaction :: set_length ( & mut head, has_body, method. as_ref ( ) ) ;
117
- debug ! ( "encode headers = {:?}" , head. headers) ;
118
115
119
116
let init_cap = 30 + head. headers . len ( ) * AVERAGE_HEADER_SIZE ;
120
117
dst. reserve ( init_cap) ;
@@ -180,7 +177,6 @@ impl Http1Transaction for ClientTransaction {
180
177
if buf. len ( ) == 0 {
181
178
return Ok ( None ) ;
182
179
}
183
- trace ! ( "parse({:?})" , buf) ;
184
180
let mut headers_indices = [ HeaderIndices {
185
181
name : ( 0 , 0 ) ,
186
182
value : ( 0 , 0 )
@@ -192,7 +188,7 @@ impl Http1Transaction for ClientTransaction {
192
188
let bytes = buf. as_ref ( ) ;
193
189
match try!( res. parse ( bytes) ) {
194
190
httparse:: Status :: Complete ( len) => {
195
- trace ! ( "Response.try_parse Complete({})" , len) ;
191
+ trace ! ( "Response.parse Complete({})" , len) ;
196
192
let code = res. code . unwrap ( ) ;
197
193
let status = try!( StatusCode :: try_from ( code) . map_err ( |_| :: Error :: Status ) ) ;
198
194
let reason = match status. canonical_reason ( ) {
@@ -273,14 +269,11 @@ impl Http1Transaction for ClientTransaction {
273
269
}
274
270
275
271
fn encode ( mut head : MessageHead < Self :: Outgoing > , has_body : bool , method : & mut Option < Method > , dst : & mut Vec < u8 > ) -> Encoder {
276
- trace ! ( "ClientTransaction::encode head={:?}, has_body={}, method={:?}" ,
277
- head, has_body, method) ;
278
-
272
+ trace ! ( "ClientTransaction::encode has_body={}, method={:?}" , has_body, method) ;
279
273
280
274
* method = Some ( head. subject . 0 . clone ( ) ) ;
281
275
282
276
let body = ClientTransaction :: set_length ( & mut head, has_body) ;
283
- debug ! ( "encode headers = {:?}" , head. headers) ;
284
277
285
278
let init_cap = 30 + head. headers . len ( ) * AVERAGE_HEADER_SIZE ;
286
279
dst. reserve ( init_cap) ;
0 commit comments