def _encode_payload(data, headers=None):
prolog = "<STR_LIT>" % len(data)<EOL>if headers:<EOL><INDENT>prolog += _encode_headers(headers)<EOL><DEDENT>return _encode_netstring(prolog) + data<EOL>
Wrap data in an SCGI request.