@@ -23,7 +23,6 @@ impl Http1Transaction for ServerTransaction {
2323 if buf. len ( ) == 0 {
2424 return Ok ( None ) ;
2525 }
26- trace ! ( "parse({:?})" , buf) ;
2726 let mut headers_indices = [ HeaderIndices {
2827 name : ( 0 , 0 ) ,
2928 value : ( 0 , 0 )
@@ -34,7 +33,7 @@ impl Http1Transaction for ServerTransaction {
3433 let mut req = httparse:: Request :: new ( & mut headers) ;
3534 match try!( req. parse ( & buf) ) {
3635 httparse:: Status :: Complete ( len) => {
37- trace ! ( "httparse Complete({})" , len) ;
36+ trace ! ( "Request.parse Complete({})" , len) ;
3837 let method = try!( req. method . unwrap ( ) . parse ( ) ) ;
3938 let path = req. path . unwrap ( ) ;
4039 let bytes_ptr = buf. as_ref ( ) . as_ptr ( ) as usize ;
@@ -110,11 +109,9 @@ impl Http1Transaction for ServerTransaction {
110109
111110
112111 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) ;
115113
116114 let body = ServerTransaction :: set_length ( & mut head, has_body, method. as_ref ( ) ) ;
117- debug ! ( "encode headers = {:?}" , head. headers) ;
118115
119116 let init_cap = 30 + head. headers . len ( ) * AVERAGE_HEADER_SIZE ;
120117 dst. reserve ( init_cap) ;
@@ -180,7 +177,6 @@ impl Http1Transaction for ClientTransaction {
180177 if buf. len ( ) == 0 {
181178 return Ok ( None ) ;
182179 }
183- trace ! ( "parse({:?})" , buf) ;
184180 let mut headers_indices = [ HeaderIndices {
185181 name : ( 0 , 0 ) ,
186182 value : ( 0 , 0 )
@@ -192,7 +188,7 @@ impl Http1Transaction for ClientTransaction {
192188 let bytes = buf. as_ref ( ) ;
193189 match try!( res. parse ( bytes) ) {
194190 httparse:: Status :: Complete ( len) => {
195- trace ! ( "Response.try_parse Complete({})" , len) ;
191+ trace ! ( "Response.parse Complete({})" , len) ;
196192 let code = res. code . unwrap ( ) ;
197193 let status = try!( StatusCode :: try_from ( code) . map_err ( |_| :: Error :: Status ) ) ;
198194 let reason = match status. canonical_reason ( ) {
@@ -273,14 +269,11 @@ impl Http1Transaction for ClientTransaction {
273269 }
274270
275271 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) ;
279273
280274 * method = Some ( head. subject . 0 . clone ( ) ) ;
281275
282276 let body = ClientTransaction :: set_length ( & mut head, has_body) ;
283- debug ! ( "encode headers = {:?}" , head. headers) ;
284277
285278 let init_cap = 30 + head. headers . len ( ) * AVERAGE_HEADER_SIZE ;
286279 dst. reserve ( init_cap) ;
0 commit comments