Falcon v0.2.0 DocumentationGunicorn. For example: $ pip install gunicorn $ gunicorn things:app Then, in another terminal: $ curl localhost:8000/things More Features Here is a more involved example that demonstrates reading headers actually deploy in production. $ pip install gunicorn $ gunicorn app Now try querying it with curl: $ curl localhost:8000 -v You should get a 404. That’s actually OK, because we haven’t specified any default 404 response handler that will fire for any requested path that doesn’t match any routes. Curl is a bit of a pain to use, so let’s install HTTPie and use it from now on. $ pip install --upgrade0 码力 | 70 页 | 296.15 KB | 1 年前3
Falcon v0.3.0.1 DocumentationGunicorn. For example: $ pip install gunicorn $ gunicorn things:app Then, in another terminal: $ curl localhost:8000/things More Features Here is a more involved example that demonstrates reading headers actually deploy in production. $ pip install gunicorn $ gunicorn app Now try querying it with curl: $ curl localhost:8000 -v You should get a 404. That’s actually OK, because we haven’t specified any default 404 response handler that will fire for any requested path that doesn’t match any routes. Curl is a bit of a pain to use, so let’s install HTTPie and use it from now on. $ pip install --upgrade0 码力 | 77 页 | 311.34 KB | 1 年前3
Falcon v0.2.0 DocumentationGunicorn. For example: $ pip install gunicorn $ gunicorn things:app Then, in another terminal: $ curl localhost:8000/things More Features Here is a more involved example that demonstrates reading headers actually deploy in production. $ pip install gunicorn $ gunicorn app Now try querying it with curl: $ curl localhost:8000 -v You should get a 404. That’s actually OK, because we haven’t specified any default 404 response handler that will fire for any requested path that doesn’t match any routes. Curl is a bit of a pain to use, so let’s install HTTPie [https://github.com/jkbr/httpie] and use it from0 码力 | 188 页 | 358.44 KB | 1 年前3
Falcon v1.0.0 DocumentationGunicorn. For example: $ pip install gunicorn $ gunicorn things:app Then, in another terminal: $ curl localhost:8000/things More Features Here is a more involved example that demonstrates reading headers actually deploy in production. $ pip install gunicorn $ gunicorn app Now try querying it with curl: $ curl localhost:8000 -v You should get a 404. That’s actually OK, because we haven’t specified any default 404 response handler that will fire for any requested path that doesn’t match any routes. Curl is a bit of a pain to use, so let’s install HTTPie and use it from now on. $ pip install --upgrade0 码力 | 87 页 | 348.15 KB | 1 年前3
Falcon v0.3.0.1 DocumentationGunicorn. For example: $ pip install gunicorn $ gunicorn things:app Then, in another terminal: $ curl localhost:8000/things More Features Here is a more involved example that demonstrates reading headers actually deploy in production. $ pip install gunicorn $ gunicorn app Now try querying it with curl: $ curl localhost:8000 -v You should get a 404. That’s actually OK, because we haven’t specified any default 404 response handler that will fire for any requested path that doesn’t match any routes. Curl is a bit of a pain to use, so let’s install HTTPie [https://github.com/jkbr/httpie] and use it from0 码力 | 126 页 | 345.09 KB | 1 年前3
Falcon v1.2.0 Documentationinstall waitress $ waitress-serve --port=8000 things:app Then, in another terminal: $ curl localhost:8000/things Curl is a bit of a pain to use, so let’s install HTTPie [https://github.com/jkbr/httpie] waitress-serve --port=8000 look.app Now, in a different terminal, try querying the running app with curl: $ curl -v localhost:8000 You should get a 404. That’s actually OK, because we haven’t specified any 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 to use. HTTPie [https://github.com/jkbr/httpie]0 码力 | 177 页 | 252.56 KB | 1 年前3
Falcon v1.2.0 Documentationinstall waitress $ waitress-serve --port=8000 things:app Then, in another terminal: $ curl localhost:8000/things Curl is a bit of a pain to use, so let’s install HTTPie and use it from now on. $ pip install in a different terminal, try querying the running app with curl: 26 Chapter 6. Documentation Falcon Documentation, Release 1.2.0 $ curl -v localhost:8000 You should get a 404. That’s actually OK, 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 to use. HTTPie is a modern, user-friendly alternative0 码力 | 134 页 | 498.46 KB | 1 年前3
Falcon v1.3.0 Documentationinstall waitress $ waitress-serve --port=8000 things:app Then, in another terminal: $ curl localhost:8000/things Curl is a bit of a pain to use, so let’s install HTTPie and use it from now on. $ pip install waitress-serve --port=8000 look.app Now, in a different terminal, try querying the running app with curl: $ curl -v localhost:8000 You should get a 404. That’s actually OK, because we haven’t specified any 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 to use. HTTPie is a modern, user-friendly alternative0 码力 | 146 页 | 535.22 KB | 1 年前3
Falcon v1.3.0 Documentationinstall waitress $ waitress-serve --port=8000 things:app Then, in another terminal: $ curl localhost:8000/things Curl is a bit of a pain to use, so let’s install HTTPie [https://github.com/jkbr/httpie] waitress-serve --port=8000 look.app Now, in a different terminal, try querying the running app with curl: $ curl -v localhost:8000 You should get a 404. That’s actually OK, because we haven’t specified any 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 to use. HTTPie [https://github.com/jkbr/httpie]0 码力 | 194 页 | 266.90 KB | 1 年前3
Falcon v3.0.0-b2 Documentationserver: $ pip install falcon $ python things.py Then, in another terminal: $ curl localhost:8000/things As an alternative to Curl, you might want to give HTTPie a try: $ pip install --upgrade httpie $ http install falcon uvicorn $ uvicorn things_asgi:app Then, in another terminal: $ curl localhost:8000/things As an alternative to Curl, you might want to give HTTPie a try: $ pip install --upgrade httpie $ http waitress-serve --port=8000 look.app:app Now, in a different terminal, try querying the running app with curl: $ curl -v localhost:8000 You should get a 404. That’s actually OK, because we haven’t specified any0 码力 | 340 页 | 1.15 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













