Falcon v3.1.1-b3 Documentationlong-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI com/search', } def __call__(self, req, resp, engine): url = self.engines[engine] params = {'q': req.get_param('q', True)} result = requests.get(url, params=params) resp.status = falcon.code_to_http_status(result0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationlong-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI com/search', } def __call__(self, req, resp, engine): url = self.engines[engine] params = {'q': req.get_param('q', True)} result = requests.get(url, params=params) resp.status = falcon.code_to_http_status(result0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a Documentationlong-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI com/search', } def __call__(self, req, resp, engine): url = self.engines[engine] params = {'q': req.get_param('q', True)} result = requests.get(url, params=params) resp.status = falcon.code_to_http_status(result0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.0 Documentationlong-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI com/search', } def __call__(self, req, resp, engine): url = self.engines[engine] params = {'q': req.get_param('q', True)} result = requests.get(url, params=params) resp.status = falcon.code_to_http_status(result0 码力 | 362 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 Documentationlong-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI com/search', } def __call__(self, req, resp, engine): url = self.engines[engine] params = {'q': req.get_param('q', True)} result = requests.get(url, params=params) resp.status = falcon.code_to_http_status(result0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-rc1 Documentationlong-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI com/search', } def __call__(self, req, resp, engine): url = self.engines[engine] params = {'q': req.get_param('q', True)} result = requests.get(url, params=params) resp.status = falcon.code_to_http_status(result0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 DocumentationNames Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Decoding Raw URL Path Request ID Logging FAQ Design Philosophy Performance Routing Extensibility Request Handling Names Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Decoding Raw URL Path Request ID Logging FAQ Design Philosophy Performance Routing Extensibility Request Handling long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app)0 码力 | 540 页 | 476.60 KB | 1 年前3
Falcon v3.1.1-rc1 DocumentationNames Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Decoding Raw URL Path Request ID Logging FAQ Design Philosophy Performance Routing Extensibility Request Handling Names Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Decoding Raw URL Path Request ID Logging FAQ Design Philosophy Performance Routing Extensibility Request Handling long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app)0 码力 | 540 页 | 476.61 KB | 1 年前3
Falcon v3.1.0 DocumentationNames Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Decoding Raw URL Path Request ID Logging FAQ Design Philosophy Performance Routing Extensibility Request Handling Names Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Decoding Raw URL Path Request ID Logging FAQ Design Philosophy Performance Routing Extensibility Request Handling long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app)0 码力 | 537 页 | 474.34 KB | 1 年前3
Falcon v3.1.1-b3 DocumentationNames Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Decoding Raw URL Path Request ID Logging FAQ Design Philosophy Performance Routing Extensibility Request Handling Names Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Decoding Raw URL Path Request ID Logging FAQ Design Philosophy Performance Routing Extensibility Request Handling long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app)0 码力 | 540 页 | 476.61 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













