def format_to_http_prompt(context, excluded_options=None):
 cmds = _extract_httpie_options(context, quote=True, join_key_value=True, excluded_keys=excluded_options)
 cmds.append(('cd ' + smart_quote(context.url)))
 cmds += _extract_httpie_request_items(context, quote=True)
 return ('\n'.join(cmds) + '\n')

def format_to_http_prompt ( context , excluded_options = None ) : cmds = _extract_httpie_options ( context , quote = True , join_key_value = True , excluded_keys = excluded_options ) cmds . append ( ( 'cd ' + smart_quote ( context . url ) ) ) cmds += _extract_httpie_request_items ( context , quote = True ) return ( '\n' . join ( cmds ) + '\n' )
format a context object to http prompt commands .