python (3.12.0)
̑e` n d Z ddlZg dZ G d d Zd Zd Zd
dZd Zd
Zh dj Z
d Zy)z$Miscellaneous WSGI-related Utilities N)FileWrapperguess_schemeapplication_urirequest_urishift_path_infosetup_testing_defaultsc $ e Zd ZdZddZd Zd Zy)r z1Wrapper to convert file-like objects to iterablesc \ || _ || _ t |d r|j | _ y y )Nclose)filelikeblksizehasattrr )selfr r
s @/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/wsgiref/util.py__init__zFileWrapper.__init__ s*
8G$!DJ % c | S N )r s r __iter__zFileWrapper.__iter__ s r c ` | j j | j }|r|S t r )r readr
StopIteration)r datas r __next__zFileWrapper.__next__ s( }}!!$,,/Kr N)i )__name__
__module____qualname____doc__r r r r r r r r s ;(r r c , | j d dv ryy)zMReturn a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
HTTPS)yeson1httpshttp)get)environs r r r s {{7//r c | d dz }ddl m} | j d r || d z
}n7|| d z
}| d dk( r| d d k7 r|d
| d z z
}n| d dk7 r|d
| d z z
}| || j d xs d
d z
}|S )z@Return the application's base URI (no PATH_INFO or QUERY_STRING)wsgi.url_schemez://r quote HTTP_HOSTSERVER_NAMEr% SERVER_PORT443:80SCRIPT_NAME/latin1)encoding)urllib.parser, r'