Falcon v1.4.1 DocumentationResource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } # Create a JSON representation of the resource (continues on next page) Resource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type additional parameter. def test_list_images(client): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } response = client.simulate_get('/images') result_doc = msgpack.unpackb(response0 码力 | 158 页 | 587.88 KB | 1 年前3
Falcon v1.4.0 DocumentationResource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } # Create a JSON representation of the resource resp.body = json.dumps(doc Resource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type parameter. def test_list_images(client): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } response = client.simulate_get('/images') result_doc = msgpack.unpackb(response0 码力 | 156 页 | 573.94 KB | 1 年前3
Falcon v1.4.1 DocumentationResource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } # Create a JSON representation of the resource resp.body = json.dumps(doc Resource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type parameter. def test_list_images(client): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } response = client.simulate_get('/images') result_doc = msgpack.unpackb(response0 码力 | 156 页 | 574.46 KB | 1 年前3
Falcon v1.4.1-post-1 Documentationdoc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } # Create a JSON representation doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc test_list_images(client): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } response = client.simulate_get('/images')0 码力 | 229 页 | 273.39 KB | 1 年前3
Falcon v1.4.0 Documentationdoc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } # Create a JSON representation doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc test_list_images(client): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } response = client.simulate_get('/images')0 码力 | 230 页 | 271.65 KB | 1 年前3
Falcon v1.4.1 Documentationdoc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } # Create a JSON representation doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc test_list_images(client): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } response = client.simulate_get('/images')0 码力 | 231 页 | 272.52 KB | 1 年前3
Falcon v1.3.0 Documentationdoc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } # Create a JSON representation doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc test_list_images(client): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } response = client.simulate_get('/images')0 码力 | 194 页 | 266.90 KB | 1 年前3
Falcon v1.2.0 Documentationand ask questions about the framework. To join the discussion, please visit https://groups.google.com/d/forum/falconframework. Per our Code of Conduct [https://github.com/falconry/falcon/blob/master/CODEOFCONDUCT [https://github.com/racker/falcon/issues]. We need your help to make Falcon awesome! Pay it Forward We’d like to invite you to help other community members with their questions in IRC and on the mailing list Contributor’s Guide [https://github.com/falconry/falcon/blob/master/CONTRIBUTING.md] for more information. We’d love to have your help! Code of Conduct All contributors and maintainers of this project are subject0 码力 | 177 页 | 252.56 KB | 1 年前3
Falcon v1.3.0 DocumentationResource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } # Create a JSON representation of the resource resp.body = json.dumps(doc Resource(object): def on_get(self, req, resp): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type additional parameter. def test_list_images(client): doc = { 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5-6e8adba7cc0e.png' } ] } response = client.simulate_get('/images') result_doc = msgpack.unpackb(response0 码力 | 146 页 | 535.22 KB | 1 年前3
Falcon v1.2.0 Documentationand ask questions about the framework. To join the discussion, please visit https://groups.google.com/d/forum/falconframework. Per our Code of Conduct, we expect everyone who participates in community discussions need your help to make Falcon awesome! 13 Falcon Documentation, Release 1.2.0 Pay it Forward We’d like to invite you to help other community members with their questions in IRC and on the mailing list feature or fix a bug in the framework, please check out our Contributor’s Guide for more information. We’d love to have your help! Code of Conduct All contributors and maintainers of this project are subject0 码力 | 134 页 | 498.46 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













