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 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.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 年前3Flask-RESTful Documentation Release 0.3.6
Nested Field Extending Flask-RESTful Content Negotiation Custom Fields & Inputs Response Formats Resource Method Decorators Custom Error Handlers Intermediate Usage Project Structure Use With Blueprints from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__ defining methods on your resource. A basic CRUD resource for a todo application (of course) looks like this: from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__)0 码力 | 49 页 | 91.90 KB | 1 年前3Flask-RESTful Documentation Release 0.3.8
Nested Field Extending Flask-RESTful Content Negotiation Custom Fields & Inputs Response Formats Resource Method Decorators Custom Error Handlers Intermediate Usage Project Structure Use With Blueprints from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__ defining methods on your resource. A basic CRUD resource for a todo application (of course) looks like this: from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__)0 码力 | 55 页 | 93.30 KB | 1 年前3Flask-RESTful Documentation Release 0.3.7
Nested Field Extending Flask-RESTful Content Negotiation Custom Fields & Inputs Response Formats Resource Method Decorators Custom Error Handlers Intermediate Usage Project Structure Use With Blueprints from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__ defining methods on your resource. A basic CRUD resource for a todo application (of course) looks like this: from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__)0 码力 | 55 页 | 93.21 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 年前3Falcon v1.4.1-post-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 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 'result' not in resp.context: return resp.body = json.dumps(resp.context['result']) def max_body(limit): def hook(req, resp, resource, params):0 码力 | 229 页 | 273.39 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 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 'result' not in resp.context: return resp.body = json.dumps(resp.context['result']) def max_body(limit): def hook(req, resp, resource, params):0 码力 | 230 页 | 271.65 KB | 1 年前3
共 574 条
- 1
- 2
- 3
- 4
- 5
- 6
- 58