Falcon v3.0.1 Documentationslightly faster than using get(). try: scheme = self._asgi_headers[b'x-forwarded- proto'].decode('latin1').lower() except KeyError: scheme = self.scheme time checking it # first. try: host = self._asgi_headers[b'x-forwarded- host'].decode('latin1') except KeyError: host = self.netloc append(host) elif b'x-forwarded-for' in headers: addresses = headers[b'x-forwarded- for'].decode('latin1').split(',') self._cached_access_route = [ip.strip() for0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0 Documentationslightly faster than using get(). try: scheme = self._asgi_headers[b'x-forwarded- proto'].decode().lower() except KeyError: scheme = self.scheme append(host) elif b'x-forwarded-for' in headers: addresses = headers[b'x-forwarded- for'].decode().split(',') self._cached_access_route = [ip.strip() for ip in0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.0-b2 Documentationslightly faster than using get(). try: scheme = self._asgi_headers[b'x-forwarded- proto'].decode().lower() except KeyError: scheme = self.scheme append(host) elif b'x-forwarded-for' in headers: addresses = headers[b'x-forwarded- for'].decode().split(',') self._cached_access_route = [ip.strip() for ip in0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v3.0.0-b1 Documentationslightly faster than using get(). try: scheme = self._asgi_headers['x-forwarded- proto'].lower() except KeyError: scheme = self.scheme return0 码力 | 1028 页 | 725.86 KB | 1 年前3
共 4 条
- 1













