Falcon v1.0.0 DocumentationJSON document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 falcon api = application = falcon.API() class falcon.API(media_type='application/json; charset=UTF-8', request_type=, response_type= body str or unicode – String representing response content. If Unicode, Falcon will encode as UTF-8 in the response. If data is already a byte string, use the data attribute instead (it’s faster). 0 码力 | 249 页 | 406.22 KB | 1 年前3
Falcon v1.0.0 DocumentationJSON document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 falcon api = application = falcon.API() class falcon.API(media_type='application/json; charset=UTF-8', request_type=, response_type= body str or unicode – String representing response content. If Unicode, Falcon will encode as UTF-8 in the response. If data is already a byte string, use the data attribute instead (it’s faster). 0 码力 | 312 页 | 368.58 KB | 1 年前3
Falcon v0.2.0 DocumentationJSON document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 falcon api = application = falcon.API() class falcon.API(media_type='application/json; charset=utf-8', before=None, after=None, request_type=, response_type= UTF-8 in the response. If data is already a byte string, use the data attribute instead (it’s faster). body_encoded bytes – Returns a UTF-8 encoded version of body. data 0 码力 | 188 页 | 358.44 KB | 1 年前3
Falcon v0.3.0.1 DocumentationJSON document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 falcon api = application = falcon.API() class falcon.API(media_type='application/json; charset=utf-8', before=None, after=None, request_type=, response_type= UTF-8 encoded version of body. data bytes Byte string representing response content. Use this attribute 0 码力 | 126 页 | 345.09 KB | 1 年前3
Falcon v1.0.0 Documentationbody', 'A valid JSON document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753, 'Malformed Functions 31 Falcon Documentation, Release 1.0.0 class falcon.API(media_type=’application/json; charset=UTF-8’, request_type=, response_type= body str or unicode – String representing response content. If Unicode, Falcon will encode as UTF-8 in the response. If data is already a byte string, use the data attribute instead (it’s faster). 0 码力 | 87 页 | 348.15 KB | 1 年前3
Falcon v1.2.0 Documentationbody', 'A valid JSON document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753, 'Malformed response = client.simulate_get('/images') result_doc = msgpack.unpackb(response.content, encoding='utf-8') assert result_doc == doc assert response.status == falcon.HTTP_OK From the main project directory response = client.simulate_get('/images') result_doc = msgpack.unpackb(response.content, encoding='utf-8') assert result_doc == doc assert response.status == falcon.HTTP_OK # With clever composition of0 码力 | 134 页 | 498.46 KB | 1 年前3
Falcon v1.1.0 Documentationbody', 'A valid JSON document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753, 'Malformed falcon api = application = falcon.API() class falcon.API(media_type=’application/json; charset=UTF-8’, request_type=, response_type= body str or unicode – String representing response content. If Unicode, Falcon will encode as UTF-8 in the response. If data is already a byte string, use the data attribute instead (it’s faster). 0 码力 | 113 页 | 426.53 KB | 1 年前3
Falcon v1.2.0 DocumentationJSON document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 response = client.simulate_get('/images') result_doc = msgpack.unpackb(response.content, encoding='utf-8') assert result_doc == doc assert response.status == falcon.HTTP_OK From the main project response = client.simulate_get('/images') result_doc = msgpack.unpackb(response.content, encoding='utf-8') assert result_doc == doc assert response.status == falcon.HTTP_OK # With clever composition0 码力 | 177 页 | 252.56 KB | 1 年前3
Falcon v1.3.0 DocumentationGuide 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 response = client.simulate_get('/images') result_doc = msgpack.unpackb(response.content, encoding='utf-8') assert result_doc == doc assert response.status == falcon.HTTP_OK 6.1. User Guide 27 Falcon Documentation response = client.simulate_get('/images') result_doc = msgpack.unpackb(response.content, encoding='utf-8') assert result_doc == doc assert response.status == falcon.HTTP_OK # With clever composition of0 码力 | 146 页 | 535.22 KB | 1 年前3
Falcon v1.3.0 DocumentationJSON document is required.') try: req.context['doc'] = json.loads(body.decode('utf-8')) except (ValueError, UnicodeDecodeError): raise falcon.HTTPError(falcon.HTTP_753 response = client.simulate_get('/images') result_doc = msgpack.unpackb(response.content, encoding='utf-8') assert result_doc == doc assert response.status == falcon.HTTP_OK From the main project response = client.simulate_get('/images') result_doc = msgpack.unpackb(response.content, encoding='utf-8') assert result_doc == doc assert response.status == falcon.HTTP_OK # With clever composition0 码力 | 194 页 | 266.90 KB | 1 年前3
共 63 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













