def render_headers(self):
lines = []<EOL>sort_keys = ['<STR_LIT>', '<STR_LIT:Content-Type>', '<STR_LIT>']<EOL>for sort_key in sort_keys:<EOL><INDENT>if self.headers.get(sort_key, False):<EOL><INDENT>lines.append('<STR_LIT>' % (sort_key, self.headers[sort_key]))<EOL><DEDENT><DEDENT>for header_name, header_value in self.headers.items():<EOL><INDENT>if header_name not in sort_keys:<EOL><INDENT>if header_value:<EOL><INDENT>lines.append('<STR_LIT>' % (header_name, header_value))<EOL><DEDENT><DEDENT><DEDENT>lines.append('<STR_LIT:\r\n>')<EOL>return '<STR_LIT:\r\n>'.join(lines)<EOL>
Renders the headers for this request field.