parameters: (environ, include_query=1)
return_statement: return url
docstring: Return the full request URI, optionally including the query string
docstring_summary: Return the full request URI, optionally including the query string
docstring_tokens: Return the full request URI optionally including the query string
function: def request_uri(environ, include_query=1):
      """Return the full request URI, optionally including the query string"""
      url = application_uri(environ)
      from urllib import quote
      path_info = quote(environ.get('PATH_INFO',''),safe='/;=,')
      if not environ.get('SCRIPT_NAME'):
          url += path_info[1:]
      else:
          url += path_info
      if include_query and environ.get('QUERY_STRING'):
          url += '?' + environ['QUERY_STRING']
      return url
function_tokens: def request_uri ( environ , include_query = 1 ) : url = application_uri ( environ ) from urllib import quote path_info = quote ( environ . get ( 'PATH_INFO' , '' ) , safe = '/;=,' ) if not environ . get ( 'SCRIPT_NAME' ) : url += path_info [ 1 : ] else : url += path_info if include_query and environ . get ( 'QUERY_STRING' ) : url += '?' + environ [ 'QUERY_STRING' ] return url