waitress Documentation v3.0.1
proxies. See https://github.com/Pylons/waitress/pull/431 ## Updated Defaults • clear_untrusted_proxy_headers is set to True by default. See https://github.com/Pylons/waitress/pull/370 #### 2.1.2 ## Bugfix ## Security Fixes - In Waitress version 1.4.2 a new regular expression was added to validate the headers that Waitress receives to make sure that it matches RFC7230. Unfortunately the regular expression #### 1.4.1 (2019-12-24) ## Security Fixes - Waitress did not properly validate that the HTTP headers it received were properly formed, thereby potentially allowing a front-end server to treat a request0 码力 | 55 页 | 56.36 KB | 1 年前3
websockets Documentation
Release 6.0ServerProtocol(websockets.WebSocketServerProtocol): async def process_request(self, path, request_headers): if path == '/health/': return http.HTTPStatus.OK, [], b'OK\n' existing HTTP software. websockets provides functions to build and validate the request and response headers. The second phase is the core of the WebSocket protocol. websockets provides a standalone implementation read_limit=2 ** 16, write_limit=2 ** 16, loop=None, origins=None, extensions=None, subprotocols=None, extra_headers=None, compression='deflate', **kwds) Create, start, and return a WebSocketServer. serve()0 码力 | 58 页 | 253.08 KB | 2 年前3
Falcon v1.0.0 Documentation(assuming you’ve told it to enable keep-alive). ## Note PEP-333 prohibits apps from setting hop-by-hop headers itself, such as Transfer-Encoding. ### I ’m setting a response body, but it isn’t getting returned Python 2 and 3, and mimeparse [https://code.google.com/p/mimeparse/] for handling complex Accept headers. Neither of these packages pull in any further dependencies of their own. Third, Falcon eschews localhost:8000/things ## More Features Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. import json0 码力 | 312 页 | 368.58 KB | 2 年前3
Falcon v3.0.0-b2 Documentationresource classes • No reliance on magic globals for routing and state management • Easy access to headers and bodies through request and response classes • DRY request processing via middleware components localhost:8000/things ## A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. WSGI ASGI resp.status = str(result.status_code) + ' + result.reason resp.content_type = result.headers['content-type'] resp.text = result.text class AuthMiddleware: def process_request(self0 码力 | 1041 页 | 730.21 KB | 2 年前3
Falcon v3.0.1 Documentationthrough centralized RESTful routing • Highly-optimized, extensible code base • Easy access to headers and bodies through request and response objects • DRY request processing via middleware components through centralized RESTful routing • Highly-optimized, extensible code base • Easy access to headers and bodies through request and response objects • DRY request processing via middleware components localhost:8000/things ## A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. WSGI ASGI0 码力 | 1058 页 | 741.59 KB | 2 年前3
Falcon v3.0.0 Documentationthrough centralized RESTful routing • Highly-optimized, extensible code base • Easy access to headers and bodies through request and response objects • DRY request processing via middleware components through centralized RESTful routing • Highly-optimized, extensible code base • Easy access to headers and bodies through request and response objects • DRY request processing via middleware components localhost:8000/things ## A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. WSGI ASGI0 码力 | 1055 页 | 739.30 KB | 2 年前3
Falcon v3.0.0-b1 Documentationresource classes • No reliance on magic globals for routing and state management • Easy access to headers and bodies through request and response classes • DRY request processing via middleware components localhost:8000/things ## A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. WSGI ASGI resp.status = str(result.status_code) + ' + result.reason resp.content_type = result.headers['content-type'] resp.text = result.text class AuthMiddleware: def process_request(self0 码力 | 1028 页 | 725.86 KB | 2 年前3
Falcon v1.0.0 Documentation(assuming you’ve told it to enable keep-alive). ## Note PEP-333 prohibits apps from setting hop-by-hop headers itself, such as Transfer-Encoding. ### I ’m setting a response body, but it isn’t getting returned Python 2 and 3, and mimeparse [https://code.google.com/p/mimeparse/] for handling complex Accept headers. Neither of these packages pull in any further dependencies of their own. Third, Falcon eschews localhost:8000/things ## More Features Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. import json0 码力 | 249 页 | 406.22 KB | 2 年前3
Falcon v1.2.0 Documentation(assuming you’ve told it to enable keep-alive). Note: PEP-333 prohibits apps from setting hop-by-hop headers itself, such as Transfer-Encoding. ### I ’m setting a response body, but it isn’t getting returned six, to make it easier to support both Python 2 and 3, and mimeparse for handling complex Accept headers. Neither of these packages pull in any further dependencies of their own. Third, Falcon eschews localhost:8000/things ## More Features Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. import json0 码力 | 134 页 | 498.46 KB | 2 年前3
Falcon v1.2.0 Documentation(assuming you’ve told it to enable keep-alive). ## Note PEP-333 prohibits apps from setting hop-by-hop headers itself, such as Transfer-Encoding. ### I ’m setting a response body, but it isn’t getting returned Python 2 and 3, and mimeparse [https://code.google.com/p/mimeparse/] for handling complex Accept headers. Neither of these packages pull in any further dependencies of their own. Third, Falcon eschews localhost:8000/things ## More Features Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. import json0 码力 | 177 页 | 252.56 KB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













