'Show object in view.'

def show_object(self, obj):

    if self.is_request:
        self.startLine = obj.get_request_line()
        self._update_headers_tab(obj.get_headers())
        data = ''
        if obj.get_data():
            data = str(obj.get_data())
        self._raw.set_text(data)
    else:
        self.startLine = obj.get_status_line()
        self._update_headers_tab(obj.get_headers())
        self._raw.set_text(obj.get_body())
