Falcon v1.0.0 DocumentationFalcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class CatalogItem(object): # ... @falcon.before(hooks.to_oid) def on_get(self, id): return Falcon FAQ User Guide Introduction Installation Quickstart Tutorial Classes and Functions API Class req/resp Cookies Status Codes Error Handling Redirection Middleware Hooks Routing Utilities Testing Community Guide » FAQ How do I use WSGI middleware with Falcon? Instances of falcon.API are first-class WSGI apps, so you can use the standard pattern outlined in PEP-3333. In your main “app” file, you0 码力 | 312 页 | 368.58 KB | 1 年前3
Falcon v3.0.0 DocumentationFalcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { Responses Testing Our Application Code Coverage What Now? Recipes Capitalizing Response Header Names Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Request ID Logging Performance Routing Extensibility Request Handling Response Handling Misc. Framework Reference The App Class WSGI App ASGI App Options Request & Response WSGI Request & Response ASGI Request & Response WebSocket0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 DocumentationFalcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { Responses Testing Our Application Code Coverage What Now? Recipes Capitalizing Response Header Names Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Request ID Logging Performance Routing Extensibility Request Handling Response Handling Misc. Framework Reference The App Class WSGI App ASGI App Options Request & Response WSGI Request & Response ASGI Request & Response WebSocket0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 DocumentationFalcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { Responses Testing Our Application Code Coverage What Now? Recipes Capitalizing Response Header Names Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Request ID Logging Performance Routing Extensibility Request Handling Response Handling Misc. Framework Reference The App Class WSGI App ASGI App Options Request & Response WSGI Request & Response ASGI Request & Response WebSocket0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v3.0.0-b1 DocumentationFalcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { Responses Testing Our Application Code Coverage What Now? Recipes Capitalizing Response Header Names Parsing Nested Multipart Forms Outputting CSV Files Prettifying JSON Responses Request ID Logging Performance Routing Extensibility Request Handling Response Handling Misc. Framework Reference The App Class WSGI App ASGI App Options Request & Response WSGI Request & Response ASGI Request & Response WebSocket0 码力 | 1028 页 | 725.86 KB | 1 年前3
Falcon v1.3.0 DocumentationFalcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class CatalogItem(object): # ... @falcon.before(hooks.to_oid) def on_get(self, id): return Documentation User Guide Introduction Installation Quickstart Tutorial FAQ Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Media Redirection Middleware Hooks Routing error inside a resource crash my app? Why are trailing slashes trimmed from req.path? Why are field names in URI templates restricted to certain characters? Why is my query parameter missing from the req0 码力 | 194 页 | 266.90 KB | 1 年前3
Falcon v1.3.0 DocumentationFalcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class CatalogItem(object): # ... @falcon.before(hooks.to_oid) def on_get(self, id): return self._collection other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource(object): def on_get(self, req, resp): """Handles GET requests""" resp.status = falcon API instances are callable WSGI apps app = falcon.API() # Resources are represented by long-lived class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app0 码力 | 146 页 | 535.22 KB | 1 年前3
Falcon v1.2.0 DocumentationFalcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class CatalogItem(object): # ... @falcon.before(hooks.to_oid) def on_get(self, id): return Falcon FAQ User Guide Introduction Installation Quickstart Tutorial Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Redirection Middleware Hooks Routing Utilities information. Thanks! FAQ How do I use WSGI middleware with Falcon? Instances of falcon.API are first-class WSGI apps, so you can use the standard pattern outlined in PEP-3333. In your main “app” file, you0 码力 | 177 页 | 252.56 KB | 1 年前3
Falcon v1.2.0 DocumentationFalcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class CatalogItem(object): # ... @falcon.before(hooks.to_oid) def on_get(self, id): return self._collection information. Thanks! FAQ How do I use WSGI middleware with Falcon? Instances of falcon.API are first-class WSGI apps, so you can use the standard pattern outlined in PEP-3333. In your main “app” file, you 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 coming in on that route.0 码力 | 134 页 | 498.46 KB | 1 年前3
Falcon v3.0.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 5.4.1 The App Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 5.4.2 Request Falcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" quote = { 'quote': ( "I've other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource: (continues on next page) 5.1. User Guide 15 Falcon Documentation, Release 3.0.00 码力 | 344 页 | 1.16 MB | 1 年前3
共 75 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













