Falcon v3.0.0 DocumentationHTTPBadRequest(title='Malformed JSON', description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context Guide 19 Falcon Documentation, Release 3.0.0 (continued from previous page) def hook(req, resp, resource, params): length = req.content_length if length is not None and length > limit: msg = ('The size add_route('/{user_id}/things', things) # If a responder ever raises an instance of StorageError, pass control to # the given handler. app.add_error_handler(StorageError, StorageError.handle) # Proxy some things0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 DocumentationHTTPBadRequest(title='Malformed JSON', description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context Guide 19 Falcon Documentation, Release 3.0.1 (continued from previous page) def hook(req, resp, resource, params): length = req.content_length if length is not None and length > limit: msg = ('The size add_route('/{user_id}/things', things) # If a responder ever raises an instance of StorageError, pass control to # the given handler. app.add_error_handler(StorageError, StorageError.handle) # Proxy some things0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.0-b2 Documentationeffective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full Unicode support • Intuitive request Highly-optimized, extensible code base • Intuitive routing via URI templates and REST-inspired resource classes • No reliance on magic globals for routing and state management • Easy access to headers HTTPBadRequest(title='Malformed JSON', description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.0.0-b1 Documentationeffective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full Unicode support • Intuitive request Highly-optimized, extensible code base • Intuitive routing via URI templates and REST-inspired resource classes • No reliance on magic globals for routing and state management • Easy access to headers f, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context.result) def max_body(limit): def hook(req, resp, resource, params): length0 码力 | 338 页 | 1.14 MB | 1 年前3
Falcon v3.0.0 DocumentationHandling What Now? Tutorial (ASGI) First Steps Hosting Our App Configuration Image Store Images Resource(s) Running Our Application Dynamic Thumbnails Caching Responses Testing Our Application Code Coverage Handling What Now? Tutorial (ASGI) First Steps Hosting Our App Configuration Image Store Images Resource(s) Running Our Application Dynamic Thumbnails Caching Responses Testing Our Application Code Coverage description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 DocumentationHandling What Now? Tutorial (ASGI) First Steps Hosting Our App Configuration Image Store Images Resource(s) Running Our Application Dynamic Thumbnails Caching Responses Testing Our Application Code Coverage Handling What Now? Tutorial (ASGI) First Steps Hosting Our App Configuration Image Store Images Resource(s) Running Our Application Dynamic Thumbnails Caching Responses Testing Our Application Code Coverage description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 Documentationeffective. Routes based on URI templates RFC REST-inspired mapping of URIs to resources Global, resource, and method hooks Idiomatic HTTP error responses Full Unicode support Intuitive request and response Handling What Now? Tutorial (ASGI) First Steps Hosting Our App Configuration Image Store Images Resource(s) Running Our Application Dynamic Thumbnails Caching Responses Testing Our Application Code Coverage Handling What Now? Tutorial (ASGI) First Steps Hosting Our App Configuration Image Store Images Resource(s) Running Our Application Dynamic Thumbnails Caching Responses Testing Our Application Code Coverage0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v3.0.0-b1 Documentationeffective. Routes based on URI templates RFC REST-inspired mapping of URIs to resources Global, resource, and method hooks Idiomatic HTTP error responses Full Unicode support Intuitive request and response Handling What Now? Tutorial (ASGI) First Steps Hosting Our App Configuration Image Store Images Resource(s) Running Our Application Dynamic Thumbnails Caching Responses Testing Our Application Code Coverage Handling What Now? Tutorial (ASGI) First Steps Hosting Our App Configuration Image Store Images Resource(s) Running Our Application Dynamic Thumbnails Caching Responses Testing Our Application Code Coverage0 码力 | 1028 页 | 725.86 KB | 1 年前3
Falcon v3.1.1-b3 Documentationf, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context.result) def max_body(limit): def hook(req, resp, resource, params): length add_route('/{user_id}/things', things) # If a responder ever raises an instance of StorageError, pass control to # the given handler. app.add_error_handler(StorageError, StorageError.handle) # Proxy some things req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context.result) def max_body(limit): async def hook(req, resp, resource, params): length0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationf, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context.result) def max_body(limit): def hook(req, resp, resource, params): length add_route('/{user_id}/things', things) # If a responder ever raises an instance of StorageError, pass control to # the given handler. app.add_error_handler(StorageError, StorageError.handle) # Proxy some things req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context.result) def max_body(limit): async def hook(req, resp, resource, params): length0 码力 | 378 页 | 1.29 MB | 1 年前3
共 75 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













