 Falcon v2.0.0 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the above example using any WSGI server, such as uWSGI specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty 4096 # The resource object must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before def on_get(self0 码力 | 184 页 | 671.87 KB | 1 年前3 Falcon v2.0.0 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the above example using any WSGI server, such as uWSGI specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty 4096 # The resource object must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before def on_get(self0 码力 | 184 页 | 671.87 KB | 1 年前3
 Falcon v2.0.0 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the above example using any WSGI server, such as uWSGI specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty The resource object must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before0 码力 | 265 页 | 299.57 KB | 1 年前3 Falcon v2.0.0 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the above example using any WSGI server, such as uWSGI specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty The resource object must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before0 码力 | 265 页 | 299.57 KB | 1 年前3
 Falcon v1.4.1 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the above example using any WSGI server, such as uWSGI specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty 4096 # The resource object must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before def on_get(self0 码力 | 158 页 | 587.88 KB | 1 年前3 Falcon v1.4.1 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the above example using any WSGI server, such as uWSGI specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty 4096 # The resource object must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before def on_get(self0 码力 | 158 页 | 587.88 KB | 1 年前3
 Falcon v1.4.0 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the above example using any WSGI server, such as uWSGI specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty 4096 # The resource object must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before def on_get(self0 码力 | 156 页 | 573.94 KB | 1 年前3 Falcon v1.4.0 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the above example using any WSGI server, such as uWSGI specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty 4096 # The resource object must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before def on_get(self0 码力 | 156 页 | 573.94 KB | 1 年前3
 Falcon v1.4.1 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the above example using any WSGI server, such as uWSGI specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty 4096 # The resource object must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before def on_get(self0 码力 | 156 页 | 574.46 KB | 1 年前3 Falcon v1.4.1 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the above example using any WSGI server, such as uWSGI specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty 4096 # The resource object must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before def on_get(self0 码力 | 156 页 | 574.46 KB | 1 年前3
 CakePHP Cookbook 2.x
Publish Your Plugin Shells, Tasks & Console Tools The CakePHP console Adding cake to your system path Creating a shell Using Models in your shells Shell tasks Loading tasks on the fly with TaskCollection your DocumentRoot. Once finished, your directory setup should look something like the following: /path_to_document_root /app /lib /plugins /vendors .htaccess index.php README Now webroot .htaccess file would look like: CakePHP Cookbook 2.x
Publish Your Plugin Shells, Tasks & Console Tools The CakePHP console Adding cake to your system path Creating a shell Using Models in your shells Shell tasks Loading tasks on the fly with TaskCollection your DocumentRoot. Once finished, your directory setup should look something like the following: /path_to_document_root /app /lib /plugins /vendors .htaccess index.php README Now webroot .htaccess file would look like:- RewriteEngine On RewriteBase /path/to/cake/app RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule 0 码力 | 1096 页 | 958.62 KB | 1 年前3
 Falcon v3.0.0-b2 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) as httpd: class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI server: specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. 5.1. User Guide 27 Falcon Documentation, Release 3.0.0b2 While0 码力 | 340 页 | 1.15 MB | 1 年前3 Falcon v3.0.0-b2 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) as httpd: class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI server: specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. 5.1. User Guide 27 Falcon Documentation, Release 3.0.0b2 While0 码力 | 340 页 | 1.15 MB | 1 年前3
 Falcon v3.0.0 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) as httpd: class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI server: specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. 5.1. User Guide 27 Falcon Documentation, Release 3.0.0 While0 码力 | 344 页 | 1.16 MB | 1 年前3 Falcon v3.0.0 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) as httpd: class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI server: specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. 5.1. User Guide 27 Falcon Documentation, Release 3.0.0 While0 码力 | 344 页 | 1.16 MB | 1 年前3
 Falcon v3.0.1 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) as httpd: class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI server: specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. 5.1. User Guide 27 Falcon Documentation, Release 3.0.1 While0 码力 | 344 页 | 1.16 MB | 1 年前3 Falcon v3.0.1 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) as httpd: class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI server: specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. 5.1. User Guide 27 Falcon Documentation, Release 3.0.1 While0 码力 | 344 页 | 1.16 MB | 1 年前3
 Falcon v3.0.0-b1 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) as httpd: class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI server: specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty0 码力 | 338 页 | 1.14 MB | 1 年前3 Falcon v3.0.0-b1 Documentationclass instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) if __name__ == '__main__': with make_server('', 8000, app) as httpd: class instances things = ThingsResource() # things will handle all requests to the '/things' URL path app.add_route('/things', things) You can run the ASGI version with uvicorn or any other ASGI server: specified any routes yet. Falcon includes a default 404 response handler that will fire for any requested path for which a route does not exist. While curl certainly gets the job done, it can be a bit crufty0 码力 | 338 页 | 1.14 MB | 1 年前3
共 76 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8














