Falcon v1.0.0 Documentation
effective. 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 年前3Falcon v0.2.0 Documentation
effective. 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 the requested resource. Tip The Talons project [https://github.com/talons/talons] maintains a collection of auth plugins for the Falcon framework. Why doesn’t Falcon create a new Resource instance for 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 server all requests coming0 码力 | 188 页 | 358.44 KB | 1 年前3Falcon v2.0.0 Documentation
effective. • 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 年前3Falcon v1.0.0 Documentation
effective. 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 年前3Falcon v1.4.1 Documentation
effective. • 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 'result' not in resp.context: return resp.body = json.dumps(resp.context['result']) def max_body(limit): def hook(req, resp, resource, params): length = req.content_length0 码力 | 158 页 | 587.88 KB | 1 年前3Falcon v1.4.0 Documentation
effective. • 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 'result' not in resp.context: return resp.body = json.dumps(resp.context['result']) def max_body(limit): def hook(req, resp, resource, params): length = req0 码力 | 156 页 | 573.94 KB | 1 年前3Falcon v1.4.1 Documentation
effective. • 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 'result' not in resp.context: return resp.body = json.dumps(resp.context['result']) def max_body(limit): def hook(req, resp, resource, params): length = req0 码力 | 156 页 | 574.46 KB | 1 年前3Falcon v1.2.0 Documentation
effective. 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 码力 | 177 页 | 252.56 KB | 1 年前3Falcon v1.2.0 Documentation
effective. • 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 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 码力 | 134 页 | 498.46 KB | 1 年前3Falcon v1.3.0 Documentation
effective. 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 requests? Why doesn’t Falcon create a new Resource instance for every request? Is Falcon thread-safe? How do I implement both POSTing and GETing items for the same resource? How can I pass data from a hook to cookie, but it isn’t being passed back in subsequent requests. Why does raising an error inside a resource crash my app? Why are trailing slashes trimmed from req.path? Why are field names in URI templates0 码力 | 194 页 | 266.90 KB | 1 年前3
共 71 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8