Home
last modified time | relevance | path

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

/unit/test/
H A Dtest_forwarded_header.py40 def get_scheme(self, *args, **kwargs): member in TestForwardedHeader
65 assert self.get_scheme() == 'http', 'ipv4 default proto'
67 assert self.get_scheme(xfp='https') == 'http', 'bad proto'
68 assert self.get_scheme(xfp='blah') == 'http', 'bad xfp'
88 assert self.get_scheme() == 'http', 'ipv4 default proto 2'
91 assert self.get_scheme(xfp='on') == 'https', 'xfp replace 2'
93 self.get_scheme('ipv6', xfp='https') == 'http'
106 assert self.get_scheme(xfp='https') == 'http', 'bad proto 2'
130 self.get_scheme(xfp='http, https, http') == 'http'
210 assert self.get_scheme() == 'http', 'ipv4 default proto'
[all …]