Falcon v1.0.0 Documentation
ones as appropriate. We require 100% code coverage. Also, please ensure your coding style follows PEP 8 and doesn’t make pyflakes sad. Additional Style Rules Docstrings are required for classes, attributes document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 'JSON was incorrect or not encoded as ' 'UTF-8.') def process_response(self, req, resp, resource): if 'result' not in req.context:0 码力 | 249 页 | 406.22 KB | 1 年前3Falcon v1.4.1 Documentation
3.3, 3.4 and 3.6 • Compatible with PyPy and Jython 7 Falcon Documentation, Release 1.4.1.post-1 8 Chapter 3. Features CHAPTER 4 Who’s Using Falcon? Falcon is used around the world by a growing number 1.4.1.post-1 (continued from previous page) try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753, 'Malformed JSON' JSON', 'Could not decode the request body. The ' 'JSON was incorrect or not encoded as ' 'UTF-8.') def process_response(self, req, resp, resource): if 'result' not in resp.context: return resp.body0 码力 | 158 页 | 587.88 KB | 1 年前3Falcon v1.4.0 Documentation
2.7, 3.3, 3.4 and 3.6 • Compatible with PyPy and Jython 7 Falcon Documentation, Release 1.4.0 8 Chapter 3. Features CHAPTER 4 Who’s Using Falcon? Falcon is used around the world by a growing number Guide 17 Falcon Documentation, Release 1.4.0 try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753, 'Malformed JSON' JSON', 'Could not decode the request body. The ' 'JSON was incorrect or not encoded as ' 'UTF-8.') def process_response(self, req, resp, resource): if 'result' not in resp.context: return resp.body0 码力 | 156 页 | 573.94 KB | 1 年前3Falcon v1.4.1 Documentation
2.7, 3.3, 3.4 and 3.6 • Compatible with PyPy and Jython 7 Falcon Documentation, Release 1.4.1 8 Chapter 3. Features CHAPTER 4 Who’s Using Falcon? Falcon is used around the world by a growing number Guide 17 Falcon Documentation, Release 1.4.1 try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753, 'Malformed JSON' JSON', 'Could not decode the request body. The ' 'JSON was incorrect or not encoded as ' 'UTF-8.') def process_response(self, req, resp, resource): if 'result' not in resp.context: return resp.body0 码力 | 156 页 | 574.46 KB | 1 年前3Falcon v1.3.0 Documentation
you can find a list of add-ons maintained by the community. 7 Falcon Documentation, Release 1.3.0 8 Chapter 3. Who’s Using Falcon? CHAPTER 4 Useful Links • Falcon Home • Falcon @ PyPI • Falcon @ Guide 19 Falcon Documentation, Release 1.3.0 try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753, 'Malformed JSON' JSON', 'Could not decode the request body. The ' 'JSON was incorrect or not encoded as ' 'UTF-8.') def process_response(self, req, resp, resource): if 'result' not in resp.context: return resp.body0 码力 | 146 页 | 535.22 KB | 1 年前3Falcon v1.0.0 Documentation
document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 'JSON was incorrect or not encoded as ' 'UTF-8.') def process_response(self, req, resp, resource): if 'result' not in req.context: falcon api = application = falcon.API() class falcon.API(media_type='application/json; charset=UTF-8', request_type=, response_type= , 0 码力 | 312 页 | 368.58 KB | 1 年前3Falcon v1.3.0 Documentation
document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 'JSON was incorrect or not encoded as ' 'UTF-8.') def process_response(self, req, resp, resource): if 'result' not in resp.context: 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } # Create a JSON representation of0 码力 | 194 页 | 266.90 KB | 1 年前3Falcon v1.4.1-post-1 Documentation
document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 'JSON was incorrect or not encoded as ' 'UTF-8.') def process_response(self, req, resp, resource): if 'result' not in resp.context: 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } # Create a JSON representation of0 码力 | 229 页 | 273.39 KB | 1 年前3Falcon v1.4.0 Documentation
document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 'JSON was incorrect or not encoded as ' 'UTF-8.') def process_response(self, req, resp, resource): if 'result' not in resp.context: 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } # Create a JSON representation of0 码力 | 230 页 | 271.65 KB | 1 年前3Falcon v1.4.1 Documentation
document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 'JSON was incorrect or not encoded as ' 'UTF-8.') def process_response(self, req, resp, resource): if 'result' not in resp.context: 'images': [ { 'href': '/images/1eaf6ef1-7f2d-4ecc-a8d5- 6e8adba7cc0e.png' } ] } # Create a JSON representation of0 码力 | 231 页 | 272.52 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4