Falcon v1.4.1 Documentation
common media types, including falcon.MEDIA_JSON, falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML, falcon.MEDIA_XML, falcon.MEDIA_HTML, falcon.MEDIA_JS, falcon.MEDIA_TEXT, falcon. MEDIA_JPEG, falcon.MEDIA_PNG, and falcon serialize the HTTPError instance using its to_json() or to_xml() methods, according to the Accept header in the request. If neither JSON nor XML is acceptable, no response body will be generated. You can of constants for common media types, such as falcon.MEDIA_MSGPACK, falcon. MEDIA_YAML, falcon.MEDIA_XML, etc. 5.2. Classes and Functions 51 Falcon Documentation, Release 1.4.1.post-1 • middleware (object0 码力 | 158 页 | 587.88 KB | 1 年前3Falcon v1.4.0 Documentation
common media types, including falcon.MEDIA_JSON, falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML, falcon.MEDIA_XML, falcon.MEDIA_HTML, falcon.MEDIA_JS, falcon.MEDIA_TEXT, falcon. MEDIA_JPEG, falcon.MEDIA_PNG, and falcon serialize the HTTPError instance using its to_json() or to_xml() methods, according to the Accept header in the request. If neither JSON nor XML is acceptable, no response body will be generated. You can of constants for common media types, such as falcon.MEDIA_MSGPACK, falcon. MEDIA_YAML, falcon.MEDIA_XML, etc. 5.2. Classes and Functions 51 Falcon Documentation, Release 1.4.0 • middleware (object or0 码力 | 156 页 | 573.94 KB | 1 年前3Falcon v1.4.1 Documentation
common media types, including falcon.MEDIA_JSON, falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML, falcon.MEDIA_XML, falcon.MEDIA_HTML, falcon.MEDIA_JS, falcon.MEDIA_TEXT, falcon. MEDIA_JPEG, falcon.MEDIA_PNG, and falcon serialize the HTTPError instance using its to_json() or to_xml() methods, according to the Accept header in the request. If neither JSON nor XML is acceptable, no response body will be generated. You can of constants for common media types, such as falcon.MEDIA_MSGPACK, falcon. MEDIA_YAML, falcon.MEDIA_XML, etc. 5.2. Classes and Functions 51 Falcon Documentation, Release 1.4.1 • middleware (object or0 码力 | 156 页 | 574.46 KB | 1 年前3Falcon v0.2.0 Documentation
HTTPError, Falcon converts it to an HTTP response automatically. The default serializer supports JSON and XML, but may be overridden by this method to use a custom serializer in order to support other media types custom media type is used and the type includes a “+json” or “+xml” suffix, the default serializer will convert the error to JSON or XML, respectively. If this is not desirable, a custom error serializer to receive MessagePack, otherwise False. client_accepts_xml bool – True if the Accept header indicates that the client is willing to receive XML, otherwise False. content_type str – Value of the Content-Type0 码力 | 188 页 | 358.44 KB | 1 年前3Falcon v2.0.0 Documentation
common media types, including falcon.MEDIA_JSON, falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML, falcon.MEDIA_XML, falcon.MEDIA_HTML, falcon.MEDIA_JS, falcon.MEDIA_TEXT, falcon. MEDIA_JPEG, falcon.MEDIA_PNG, and falcon serialize the HTTPError instance using its to_json() or to_xml() methods, according to the Accept header in the request. If neither JSON nor XML is acceptable, no response body will be generated. You can of constants for common media types, such as falcon.MEDIA_MSGPACK, falcon. MEDIA_YAML, falcon.MEDIA_XML, etc. • middleware (object or list) – Either a single object or a list of objects (instanti- ated0 码力 | 184 页 | 671.87 KB | 1 年前3Falcon v1.4.1-post-1 Documentation
common media types, including falcon.MEDIA_JSON, falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML, falcon.MEDIA_XML, falcon.MEDIA_HTML, falcon.MEDIA_JS, falcon.MEDIA_TEXT, falcon.MEDIA_JPEG, falcon.MEDIA_PNG, and falcon serialize the HTTPError instance using its to_json() or to_xml() methods, according to the Accept header in the request. If neither JSON nor XML is acceptable, no response body will be generated. You can of constants for common media types, such as falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML falcon.MEDIA_XML, etc. middleware (object [https://docs.python.org/2/library/functions.html#object] or list) – Either0 码力 | 229 页 | 273.39 KB | 1 年前3Falcon v1.4.0 Documentation
common media types, including falcon.MEDIA_JSON, falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML, falcon.MEDIA_XML, falcon.MEDIA_HTML, falcon.MEDIA_JS, falcon.MEDIA_TEXT, falcon.MEDIA_JPEG, falcon.MEDIA_PNG, and falcon serialize the HTTPError instance using its to_json() or to_xml() methods, according to the Accept header in the request. If neither JSON nor XML is acceptable, no response body will be generated. You can of constants for common media types, such as falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML falcon.MEDIA_XML, etc. middleware (object [https://docs.python.org/2/library/functions.html#object] or list) – Either0 码力 | 230 页 | 271.65 KB | 1 年前3Falcon v1.4.1 Documentation
common media types, including falcon.MEDIA_JSON, falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML, falcon.MEDIA_XML, falcon.MEDIA_HTML, falcon.MEDIA_JS, falcon.MEDIA_TEXT, falcon.MEDIA_JPEG, falcon.MEDIA_PNG, and falcon serialize the HTTPError instance using its to_json() or to_xml() methods, according to the Accept header in the request. If neither JSON nor XML is acceptable, no response body will be generated. You can of constants for common media types, such as falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML falcon.MEDIA_XML, etc. middleware (object [https://docs.python.org/2/library/functions.html#object] or list) – Either0 码力 | 231 页 | 272.52 KB | 1 年前3Falcon v1.3.0 Documentation
common media types, including falcon.MEDIA_JSON, falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML, falcon.MEDIA_XML, falcon.MEDIA_HTML, falcon.MEDIA_JS, falcon.MEDIA_TEXT, falcon. MEDIA_JPEG, falcon.MEDIA_PNG, and falcon of constants for common media types, such as falcon.MEDIA_MSGPACK, falcon. MEDIA_YAML, falcon.MEDIA_XML, etc. • middleware (object or list) – Either a single object or a list of objects (instanti- ated JSON and XML, but may be overridden by this method to use a custom serializer in order to support other media types. Note: If a custom media type is used and the type includes a “+json” or “+xml” suffix0 码力 | 146 页 | 535.22 KB | 1 年前3Falcon v1.3.0 Documentation
common media types, including falcon.MEDIA_JSON, falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML, falcon.MEDIA_XML, falcon.MEDIA_HTML, falcon.MEDIA_JS, falcon.MEDIA_TEXT, falcon.MEDIA_JPEG, falcon.MEDIA_PNG, and falcon of constants for common media types, such as falcon.MEDIA_MSGPACK, falcon.MEDIA_YAML, falcon.MEDIA_XML, etc. middleware (object or list) – Either a single object or a list of objects (instantiated classes) JSON and XML, but may be overridden by this method to use a custom serializer in order to support other media types. Note If a custom media type is used and the type includes a “+json” or “+xml” suffix0 码力 | 194 页 | 266.90 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4