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 v1.0.0 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 authorize the request, taking into account the user’s role and the requested resource. Why doesn’t Falcon create a new Resource instance for every request? Falcon generally tries to minimize the number second to reduce memory usage. Therefore, when adding a route, Falcon requires an instance of your resource class, rather than the class type. That same instance will be used to serve all requests coming0 码力 | 249 页 | 406.22 KB | 1 年前3
Falcon v2.0.0 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 • Easy access to headers and bodies through request and response classes • DRY request process_response(self, req, resp, resource): if not hasattr(resp.context, 'result'): return resp.body = json.dumps(resp.context.result) def max_body(limit): def hook(req, resp, resource, params): length = req0 码力 | 184 页 | 671.87 KB | 1 年前3
Falcon v1.0.0 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 authorize the request, taking into account the user’s role and the requested resource. Why doesn’t Falcon create a new Resource instance for every request? Falcon generally tries to minimize the number second to reduce memory usage. Therefore, when adding a route, Falcon requires an instance of your resource class, rather than the class type. That same instance will be used to serve all requests coming0 码力 | 312 页 | 368.58 KB | 1 年前3
Falcon v2.0.0 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 Features Highly-optimized, extensible code base Intuitive routing via URI templates and REST-inspired resource classes Easy access to headers and bodies through request and response classes DRY request processing req, resp, resource): if not hasattr(resp.context, 'result'): return resp.body = json.dumps(resp.context.result) def max_body(limit): def hook(req, resp, resource, params):0 码力 | 265 页 | 299.57 KB | 1 年前3
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 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 码力 | 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 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 码力 | 344 页 | 1.16 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













