Falcon v0.2.0 Documentationhost = env['HTTP_HOST'] except KeyError: host = env['SERVER_NAME'] port = env['SERVER_PORT'] if protocol == 'https': According to PEP-3333, this header # will always be present. host = self.env['SERVER_NAME'] return host @property def subdomain(self): # PERF(kgriffs): .partition 'REMOTE_PORT': '65133', 'RAW_URI': '/', 'REMOTE_ADDR': '127.0.0.1', 'SERVER_NAME': host, 'SERVER_PORT': port, 'wsgi.url_scheme': scheme, 'wsgi.input': body0 码力 | 188 页 | 358.44 KB | 1 年前3
Falcon v1.0.0 Documentationhost = env['HTTP_HOST'] except KeyError: host = env['SERVER_NAME'] port = env['SERVER_PORT'] if protocol == 'https': According to PEP-3333, this header # will always be present. host = self.env['SERVER_NAME'] return host @property def subdomain(self): # PERF(kgriffs): .partition 'REMOTE_PORT': '65133', 'RAW_URI': '/', 'REMOTE_ADDR': '127.0.0.1', 'SERVER_NAME': host, 'SERVER_PORT': port, 'wsgi.version': (1, 0), 'wsgi.url_scheme': scheme0 码力 | 249 页 | 406.22 KB | 1 年前3
Falcon v1.0.0 Documentationhost = env['HTTP_HOST'] except KeyError: host = env['SERVER_NAME'] port = env['SERVER_PORT'] if protocol == 'https': According to PEP-3333, this header # will always be present. host = self.env['SERVER_NAME'] return host @property def subdomain(self): # PERF(kgriffs): .partition 'REMOTE_PORT': '65133', 'RAW_URI': '/', 'REMOTE_ADDR': '127.0.0.1', 'SERVER_NAME': host, 'SERVER_PORT': port, 'wsgi.version': (1, 0), 'wsgi.url_scheme': scheme0 码力 | 312 页 | 368.58 KB | 1 年前3
Falcon v2.0.0 Documentation# NOTE(kgriffs): According to PEP-3333, this header # will always be present. host = environ['SERVER_NAME'] if host.startswith('api.'): return falcon_app(environ, start_response) elif: return webapp2_app(environ something like this: Listing 3: /etc/nginx/sites-avaiable/myproject.conf server { listen 80; server_name myproject.com; access_log /var/log/nginx/myproject-access.log; error_log /var/log/nginx/myproject-error0 码力 | 184 页 | 671.87 KB | 1 年前3
Falcon v2.0.0 DocumentationNOTE(kgriffs): According to PEP-3333, this header # will always be present. host = environ['SERVER_NAME'] if host.startswith('api.'): return falcon_app(environ, start_response) elif: that looks something like this: /etc/nginx/sites-avaiable/myproject.conf server { listen 80; server_name myproject.com; access_log /var/log/nginx/myproject-access.log; error_log /var/log/nginx/myproject-error0 码力 | 265 页 | 299.57 KB | 1 年前3
Falcon v3.0.0-b1 DocumentationNOTE(kgriffs): According to PEP-3333, this header # will always be present. host = environ['SERVER_NAME'] if host.startswith('api.'): return falcon_app(environ, start_response) elif: that looks something like this: /etc/nginx/sites-avaiable/myproject.conf server { listen 80; server_name myproject.com; access_log /var/log/nginx/myproject-access.log; error_log /var/log/nginx/myproject-error According to PEP-3333, this header # will always be present. host = self.env['SERVER_NAME'] return host @property def forwarded_host(self): # PERF(kgriffs): Since0 码力 | 1028 页 | 725.86 KB | 1 年前3
Falcon v3.0.0 DocumentationNOTE(kgriffs): According to PEP-3333, this header # will always be present. host = environ['SERVER_NAME'] if host.startswith('api.'): return falcon_app(environ, start_response) elif: looks something like this: /etc/nginx/sites-available/myproject.conf server { listen 80; server_name myproject.com; access_log /var/log/nginx/myproject-access.log; error_log /var/log/nginx/myproject-error According to PEP-3333, this header # will always be present. host = self.env['SERVER_NAME'] return host @property def forwarded_host(self): # PERF(kgriffs): Since0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 DocumentationNOTE(kgriffs): According to PEP-3333, this header # will always be present. host = environ['SERVER_NAME'] if host.startswith('api.'): return falcon_app(environ, start_response) elif: looks something like this: /etc/nginx/sites-available/myproject.conf server { listen 80; server_name myproject.com; access_log /var/log/nginx/myproject-access.log; error_log /var/log/nginx/myproject-error According to PEP-3333, this header # will always be present. host = self.env['SERVER_NAME'] return host @property def forwarded_host(self): # PERF(kgriffs): Since0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 DocumentationNOTE(kgriffs): According to PEP-3333, this header # will always be present. host = environ['SERVER_NAME'] if host.startswith('api.'): return falcon_app(environ, start_response) elif: that looks something like this: /etc/nginx/sites-avaiable/myproject.conf server { listen 80; server_name myproject.com; access_log /var/log/nginx/myproject-access.log; error_log /var/log/nginx/myproject-error According to PEP-3333, this header # will always be present. host = self.env['SERVER_NAME'] return host @property def forwarded_host(self): # PERF(kgriffs): Since0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v3.0.0-b2 Documentation# NOTE(kgriffs): According to PEP-3333, this header # will always be present. host = environ['SERVER_NAME'] if host.startswith('api.'): return falcon_app(environ, start_response) elif: return webapp2_app(environ something like this: Listing 3: /etc/nginx/sites-avaiable/myproject.conf server { listen 80; server_name myproject.com; access_log /var/log/nginx/myproject-access.log; error_log /var/log/nginx/myproject-error0 码力 | 340 页 | 1.15 MB | 1 年前3
共 25 条
- 1
- 2
- 3













