Searched refs:guess_scheme (Results 1 – 6 of 6) sorted by relevance
42 def guess_scheme(environ): function155 environ.setdefault('wsgi.url_scheme',guess_scheme(environ))
3 from .util import FileWrapper, guess_scheme, is_hop_by_hop201 return guess_scheme(self.environ)
29 bool guess_scheme);
204 bool guess_scheme) in Curl_is_absolute_url() argument212 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()
418 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")
49 .. function:: guess_scheme(environ)631 implementation uses the :func:`guess_scheme` function from :mod:`wsgiref.util`