 Falcon v0.3.0.1 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Let’s take a look at the falcon.API class. First, install IPython (if you don’t already have it) out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: import falcon0 码力 | 77 页 | 311.34 KB | 1 年前3 Falcon v0.3.0.1 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Let’s take a look at the falcon.API class. First, install IPython (if you don’t already have it) out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: import falcon0 码力 | 77 页 | 311.34 KB | 1 年前3
 Falcon v0.2.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Let’s take a look at the falcon.API class. First, install IPython (if you don’t already have it) out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: import falcon0 码力 | 70 页 | 296.15 KB | 1 年前3 Falcon v0.2.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Let’s take a look at the falcon.API class. First, install IPython (if you don’t already have it) out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: import falcon0 码力 | 70 页 | 296.15 KB | 1 年前3
 Falcon v0.3.0.1 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol [http://legacy.python.org/dev/peps/pep-3333/]. Let’s take a look at the falcon.API class. First out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: import falcon0 码力 | 126 页 | 345.09 KB | 1 年前3 Falcon v0.3.0.1 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol [http://legacy.python.org/dev/peps/pep-3333/]. Let’s take a look at the falcon.API class. First out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: import falcon0 码力 | 126 页 | 345.09 KB | 1 年前3
 Falcon v1.0.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Let’s take a look at the falcon.API class. First, install IPython (if you don’t already have it) out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: import falcon0 码力 | 87 页 | 348.15 KB | 1 年前3 Falcon v1.0.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Let’s take a look at the falcon.API class. First, install IPython (if you don’t already have it) out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: import falcon0 码力 | 87 页 | 348.15 KB | 1 年前3
 Falcon v0.2.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol [http://legacy.python.org/dev/peps/pep-3333/]. Let’s take a look at the falcon.API class. First out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: import falcon0 码力 | 188 页 | 358.44 KB | 1 年前3 Falcon v0.2.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol [http://legacy.python.org/dev/peps/pep-3333/]. Let’s take a look at the falcon.API class. First out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: import falcon0 码力 | 188 页 | 358.44 KB | 1 年前3
 Falcon v1.2.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol [http://legacy.python.org/dev/peps/pep-3333/]. Next let’s take a look at the falcon.API class JSON alternatives include YAML [http://yaml.org/] and MessagePack [http://msgpack.org/]. Next let’s wire up this resource and see it in action. Go back to app.py and modify it so that it looks something not set explicitly, it defaults to 200 OK, which is exactly what we want on_get() to do. Now let’s wire everything up and give it a try. Edit app.py to look similar to the following: import os import0 码力 | 177 页 | 252.56 KB | 1 年前3 Falcon v1.2.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol [http://legacy.python.org/dev/peps/pep-3333/]. Next let’s take a look at the falcon.API class JSON alternatives include YAML [http://yaml.org/] and MessagePack [http://msgpack.org/]. Next let’s wire up this resource and see it in action. Go back to app.py and modify it so that it looks something not set explicitly, it defaults to 200 OK, which is exactly what we want on_get() to do. Now let’s wire everything up and give it a try. Edit app.py to look similar to the following: import os import0 码力 | 177 页 | 252.56 KB | 1 年前3
 Falcon v1.2.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Next let’s take a look at the falcon.API class. Install IPython and fire it up: $ pip install set it to whatever you like. Noteworthy JSON alternatives include YAML and MessagePack. Next let’s wire up this resource and see it in action. Go back to app.py and modify it so that it looks something not set explicitly, it defaults to 200 OK, which is exactly what we want on_get() to do. Now let’s wire everything up and give it a try. Edit app.py to look similar to the following: import os import0 码力 | 134 页 | 498.46 KB | 1 年前3 Falcon v1.2.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Next let’s take a look at the falcon.API class. Install IPython and fire it up: $ pip install set it to whatever you like. Noteworthy JSON alternatives include YAML and MessagePack. Next let’s wire up this resource and see it in action. Go back to app.py and modify it so that it looks something not set explicitly, it defaults to 200 OK, which is exactly what we want on_get() to do. Now let’s wire everything up and give it a try. Edit app.py to look similar to the following: import os import0 码力 | 134 页 | 498.46 KB | 1 年前3
 Falcon v1.3.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol [http://legacy.python.org/dev/peps/pep-3333/]. Next let’s take a look at the falcon.API class JSON alternatives include YAML [http://yaml.org/] and MessagePack [http://msgpack.org/]. Next let’s wire up this resource and see it in action. Go back to app.py and modify it so that it looks something not set explicitly, it defaults to 200 OK, which is exactly what we want on_get() to do. Now let’s wire everything up and give it a try. Edit app.py to look similar to the following: import os import0 码力 | 194 页 | 266.90 KB | 1 年前3 Falcon v1.3.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol [http://legacy.python.org/dev/peps/pep-3333/]. Next let’s take a look at the falcon.API class JSON alternatives include YAML [http://yaml.org/] and MessagePack [http://msgpack.org/]. Next let’s wire up this resource and see it in action. Go back to app.py and modify it so that it looks something not set explicitly, it defaults to 200 OK, which is exactly what we want on_get() to do. Now let’s wire everything up and give it a try. Edit app.py to look similar to the following: import os import0 码力 | 194 页 | 266.90 KB | 1 年前3
 Falcon v1.3.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Next let’s take a look at the falcon.API class. Install IPython and fire it up: $ pip install set it to whatever you like. Noteworthy JSON alternatives include YAML and MessagePack. Next let’s wire up this resource and see it in action. Go back to app.py and modify it so that it looks something not set explicitly, it defaults to 200 OK, which is exactly what we want on_get() to do. Now let’s wire everything up and give it a try. Edit app.py to look similar to the following: import os import0 码力 | 146 页 | 535.22 KB | 1 年前3 Falcon v1.3.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Next let’s take a look at the falcon.API class. Install IPython and fire it up: $ pip install set it to whatever you like. Noteworthy JSON alternatives include YAML and MessagePack. Next let’s wire up this resource and see it in action. Go back to app.py and modify it so that it looks something not set explicitly, it defaults to 200 OK, which is exactly what we want on_get() to do. Now let’s wire everything up and give it a try. Edit app.py to look similar to the following: import os import0 码力 | 146 页 | 535.22 KB | 1 年前3
 Falcon v1.1.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Let’s take a look at the falcon.API class. First, install IPython (if you don’t already have it) out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: 6.2. User Guide0 码力 | 113 页 | 426.53 KB | 1 年前3 Falcon v1.1.0 Documentationwell-defined signature so that you can host the application with any web server that understands the WSGI protocol. Let’s take a look at the falcon.API class. First, install IPython (if you don’t already have it) out, but you can get a little performance boost by assigning directly to resp.data. OK, now let’s wire up this resource and see it in action. Go back to app.py and modify it so it looks something like explicitly, it defaults to 200 OK, which is exactly what we want the on_get responder to do. Now, let’s wire things up and give this a try. Go ahead and edit app.py to look something like this: 6.2. User Guide0 码力 | 113 页 | 426.53 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4














