Revision ab221ddf lib/http/__init__.py

b/lib/http/__init__.py
680 680
    self.start_line = None
681 681
    self.headers = None
682 682
    self.body = None
683
    self.decoded_body = None
684 683

  
685 684

  
686 685
class HttpClientToServerStartLine(object):
......
851 850
    assert self.parser_status == self.PS_COMPLETE
852 851
    assert not buf, "Parser didn't read full response"
853 852

  
853
    # Body is complete
854 854
    msg.body = self.body_buffer.getvalue()
855 855

  
856
    # TODO: Content-type, error handling
857
    if msg.body:
858
      msg.decoded_body = HttpJsonConverter().Decode(msg.body)
859
    else:
860
      msg.decoded_body = None
861

  
862
    if msg.decoded_body:
863
      logging.debug("Message body: %s", msg.decoded_body)
864

  
865 856
  def _ContinueParsing(self, buf, eof):
866 857
    """Main function for HTTP message state machine.
867 858

  

Also available in: Unified diff