def make_pre_authed_request(env, method=None, path=None, body=None, headers=None, agent='Swift', swift_source=None):
 query_string = None
 if (path and ('?' in path)):
  (path, query_string) = path.split('?', 1)
 newenv = make_pre_authed_env(env, method, path=unquote(path), agent=agent, query_string=query_string, swift_source=swift_source)
 if (not headers):
  headers = {}
 if body:
  return Request.blank(path, environ=newenv, body=body, headers=headers)
 else:
  return Request.blank(path, environ=newenv, headers=headers)

def make_pre_authed_request ( env , method = None , path = None , body = None , headers = None , agent = 'Swift' , swift_source = None ) : query_string = None if ( path and ( '?' in path ) ) : ( path , query_string ) = path . split ( '?' , 1 ) newenv = make_pre_authed_env ( env , method , path = unquote ( path ) , agent = agent , query_string = query_string , swift_source = swift_source ) if ( not headers ) : headers = { } if body : return Request . blank ( path , environ = newenv , body = body , headers = headers ) else : return Request . blank ( path , environ = newenv , headers = headers )
same as :py:func:make_subrequest but with preauthorization .