eqpSrSSKr/SQr"SS5rSrSrS SjrS rS r1S kRr S r g)z$Miscellaneous WSGI-related UtilitiesN) FileWrapper guess_schemeapplication_uri request_urishift_path_infosetup_testing_defaults is_hop_by_hopc.\rSrSrSrSSjrSrSrSrg) r z1Wrapper to convert file-like objects to iterablescbXlX l[US5(aURUlgg)Nclose)filelikeblksizehasattrr )selfrrs 2/opt/imh/python3.13/lib/python3.13/wsgiref/util.py__init__FileWrapper.__init__s)  8G $ $!DJ %cU$N)rs r__iter__FileWrapper.__iter__s rcjURRUR5nU(aU$[er)rreadr StopIteration)rdatas r__next__FileWrapper.__next__s(}}!!$,,/ Kr)rr rN)i ) __name__ __module__ __qualname____firstlineno____doc__rrr__static_attributes__rrrrr s;( rrc0URS5S;agg)zMReturn a guess for whether 'wsgi.url_scheme' should be 'http' or 'https' HTTPS)yeson1httpshttp)get)environs rrrs{{7//rcUSS-nSSKJn URS5(aXS- nO9XS- nUSS:XaUSS :wa US US-- nOUSS :wa US US-- nX"URS 5=(d S SS9- nU$)z@Return the application's base URI (no PATH_INFO or QUERY_STRING)wsgi.url_schemez://rquote HTTP_HOST SERVER_NAMEr, SERVER_PORT443:80 SCRIPT_NAME/latin1)encoding) urllib.parser3r.)r/urlr3s rrr%s # $U *C"{{; {## }%% $ % 0}%.sW]333}%-sW]3335]+2sX FFC Jrc[U5nSSKJn U"URSS5SSS9nURS5(dX$S S - nOX$- nU(a!URS 5(a US US -- nU$) zBReturn the full request URI, optionally including the query stringrr2 PATH_INFOz/;=,r<)safer=r:N QUERY_STRING?)rr>r3r.)r/ include_queryr?r3 path_infos rrr9sw ' "C"gkk+b1RI ;;} % % } ^44 sW^,,, JrcURSS5nU(dgURS5nUSSVs/sHo3(dM US:wdMUPM snUSS&USnUS URSS5n[R"US-U-5nUR S5(aUSSnU(dUR S5(dUS- nXPS'SR U5US'US:XaSnU$s snf) a6Shift a name from PATH_INFO to SCRIPT_NAME, returning it If there are no remaining path segments in PATH_INFO, return None. Note: 'environ' is modified in-place; use a copy if you need to keep the original PATH_INFO or SCRIPT_NAME. Note: when PATH_INFO is just a '/', this returns '' and appends a trailing '/' to SCRIPT_NAME, even though empty path segments are normally ignored, and SCRIPT_NAME doesn't normally end in a '/'. This is intentional behavior, to ensure that an application can tell the difference between '/x' and '/x/' when traversing to objects. rArBNr;rD.r:)r.split posixpathnormpathendswithjoin)r/rH path_partspname script_names rrrFs K+I %J#-a#3F#3aqQ#X#3FJq a=D1 ++mB/K$$[_T%9:KC  !#2&  ,,S11s (M XXj1GK Sy K+Gs C*C* C*cURSS5 URSS5 URSUS5 URSS5 SU;a*S U;a$URSS 5 URS S 5 URS S 5 URSS5 URSS5 URSS5 SSKJnJn URSU"55 URSU"55 URS[ U55 USS:XaURSS5 gUSS:XaURSS5 gg)aUpdate 'environ' with trivial defaults for testing purposes This adds various parameters required for WSGI, including HTTP_HOST, SERVER_NAME, SERVER_PORT, REQUEST_METHOD, SCRIPT_NAME, PATH_INFO, and all of the wsgi.* variables. It only supplies default values, and does not replace any existing settings for these variables. This routine is intended to make it easier for unit tests of WSGI servers and applications to set up dummy environments. It should *not* be used by actual WSGI servers or applications, since the data is fake! r5z 127.0.0.1SERVER_PROTOCOLzHTTP/1.0r4REQUEST_METHODGETr:rArBr;z wsgi.version)rDrz wsgi.run_oncerzwsgi.multithreadzwsgi.multiprocess)StringIOBytesIOz wsgi.inputz wsgi.errorsr1r-r6r9r,r7N) setdefaultiorYrZr)r/rYrZs rrros: }[1 (4 {7=#9: '.G# 7(B=,;s+ ~u- * )1- *A.$ |WY/ }hj1 (g)>? !6)=$/ " #W ,=%0 -r>teupgradetrailers connection keep-alivetransfer-encodingproxy-authenticateproxy-authorizationc4[UR55$)z?Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header)_hoppishlower) header_names rr r s K%%' ((r)T) r%rM__all__rrrrrr __contains__rfr rrrrksM*  $( 'R$1P ,  )r