Did I find the right examples for you? yes no

All Samples(80)  |  Call(40)  |  Derive(0)  |  Import(40)
Return a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
    

        def guess_scheme(environ):
    """Return a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
    """
    if environ.get("HTTPS") in ('yes','on','1'):
        return 'https'
    else:
        return 'http'
        


src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/wsgiref/handlers.py   main(Download)
"""Base classes for server/gateway implementations"""
 
from types import StringType
from util import FileWrapper, guess_scheme, is_hop_by_hop
from headers import Headers
    def get_scheme(self):
        """Return the URL scheme being used"""
        return guess_scheme(self.environ)
 
 

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/wsgiref/handlers.py   main(Download)
"""Base classes for server/gateway implementations"""
 
from types import StringType
from util import FileWrapper, guess_scheme, is_hop_by_hop
from headers import Headers
    def get_scheme(self):
        """Return the URL scheme being used"""
        return guess_scheme(self.environ)
 
 

src/p/y/pydroid-HEAD/src/pydroid/framework/project_skeleton/libs/python27/lib/python2.7/wsgiref/handlers.py   pydroid(Download)
"""Base classes for server/gateway implementations"""
 
from types import StringType
from util import FileWrapper, guess_scheme, is_hop_by_hop
from headers import Headers
    def get_scheme(self):
        """Return the URL scheme being used"""
        return guess_scheme(self.environ)
 
 

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/wsgiref/handlers.py   TrustRouter(Download)
"""Base classes for server/gateway implementations"""
 
from .util import FileWrapper, guess_scheme, is_hop_by_hop
from .headers import Headers
 
    def get_scheme(self):
        """Return the URL scheme being used"""
        return guess_scheme(self.environ)
 
 

src/p/o/pombo-HEAD/windows/python/Lib/wsgiref/handlers.py   pombo(Download)
"""Base classes for server/gateway implementations"""
 
from types import StringType
from util import FileWrapper, guess_scheme, is_hop_by_hop
from headers import Headers
    def get_scheme(self):
        """Return the URL scheme being used"""
        return guess_scheme(self.environ)
 
 

src/e/m/empythoned-HEAD/cpython/Lib/wsgiref/handlers.py   empythoned(Download)
"""Base classes for server/gateway implementations"""
 
from types import StringType
from util import FileWrapper, guess_scheme, is_hop_by_hop
from headers import Headers
    def get_scheme(self):
        """Return the URL scheme being used"""
        return guess_scheme(self.environ)
 
 

src/g/i/gitstack-HEAD/python/Lib/wsgiref/handlers.py   gitstack(Download)
"""Base classes for server/gateway implementations"""
 
from types import StringType
from util import FileWrapper, guess_scheme, is_hop_by_hop
from headers import Headers
    def get_scheme(self):
        """Return the URL scheme being used"""
        return guess_scheme(self.environ)
 
 

src/p/y/pytaint-HEAD/Python-2.7.5-pytaint/Lib/wsgiref/handlers.py   pytaint(Download)
"""Base classes for server/gateway implementations"""
 
from types import StringType
from util import FileWrapper, guess_scheme, is_hop_by_hop
from headers import Headers
    def get_scheme(self):
        """Return the URL scheme being used"""
        return guess_scheme(self.environ)
 
 

src/p/y/PyAutoC-HEAD/Python27/Lib/wsgiref/handlers.py   PyAutoC(Download)
"""Base classes for server/gateway implementations"""
 
from types import StringType
from util import FileWrapper, guess_scheme, is_hop_by_hop
from headers import Headers
    def get_scheme(self):
        """Return the URL scheme being used"""
        return guess_scheme(self.environ)
 
 

src/p/y/Py2crazy-HEAD/Python-2.7.5/Lib/wsgiref/handlers.py   Py2crazy(Download)
"""Base classes for server/gateway implementations"""
 
from types import StringType
from util import FileWrapper, guess_scheme, is_hop_by_hop
from headers import Headers
    def get_scheme(self):
        """Return the URL scheme being used"""
        return guess_scheme(self.environ)
 
 

  1 | 2 | 3 | 4  Next