Home
last modified time | relevance | path

Searched refs:guess_scheme (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Lib/wsgiref/
Dutil.py42 def guess_scheme(environ): function
155 environ.setdefault('wsgi.url_scheme',guess_scheme(environ))
Dhandlers.py3 from .util import FileWrapper, guess_scheme, is_hop_by_hop
201 return guess_scheme(self.environ)
/third_party/curl/lib/
Durlapi-int.h29 bool guess_scheme);
Durlapi.c204 bool guess_scheme) in Curl_is_absolute_url() argument
212 if(guess_scheme && STARTS_WITH_DRIVE_PREFIX(url)) in Curl_is_absolute_url()
227 if(i && (url[i] == ':') && ((url[i + 1] == '/') || !guess_scheme)) { in Curl_is_absolute_url()
/third_party/python/Lib/test/
Dtest_wsgiref.py418 self.assertEqual(util.guess_scheme({}), "http")
419 self.assertEqual(util.guess_scheme({'HTTPS':"foo"}), "http")
420 self.assertEqual(util.guess_scheme({'HTTPS':"on"}), "https")
421 self.assertEqual(util.guess_scheme({'HTTPS':"yes"}), "https")
422 self.assertEqual(util.guess_scheme({'HTTPS':"1"}), "https")
/third_party/python/Doc/library/
Dwsgiref.rst49 .. function:: guess_scheme(environ)
631 implementation uses the :func:`guess_scheme` function from :mod:`wsgiref.util`