Falcon v3.0.0 DocumentationAPI off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') # Documentation, Release 3.0.0 (continued from previous page) # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') You 8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type = falcon.MEDIA_MSGPACK resp.status = falcon.HTTP_200 Note the use of resp.data in lieu of resp.text. If you 0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 DocumentationAPI off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') # Documentation, Release 3.0.1 (continued from previous page) # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') You 8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type = falcon.MEDIA_MSGPACK resp.status = falcon.HTTP_200 Note the use of resp.data in lieu of resp.text. If you 0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.0-b2 DocumentationAPI off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') # Documentation, Release 3.0.0b2 (continued from previous page) # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') You 8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type = falcon.MEDIA_MSGPACK resp.status = falcon.HTTP_200 Note the use of resp.data in lieu of resp.text. If you 0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.1.1-b3 DocumentationAPI off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') # API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') You 8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type = falcon.MEDIA_MSGPACK resp.status = falcon.HTTP_200 Note the use of resp.data in lieu of resp.text. If you 0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 DocumentationAPI off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') # API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') You 8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type = falcon.MEDIA_MSGPACK resp.status = falcon.HTTP_200 Note the use of resp.data in lieu of resp.text. If you 0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a DocumentationAPI off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') # API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') You 8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type = falcon.MEDIA_MSGPACK resp.status = falcon.HTTP_200 Note the use of resp.data in lieu of resp.text. If you 0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.0 DocumentationAPI off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') # API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') You 8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type = falcon.MEDIA_MSGPACK resp.status = falcon.HTTP_200 Note the use of resp.data in lieu of resp.text. If you 0 码力 | 362 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 DocumentationAPI off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') # API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') You 8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type = falcon.MEDIA_MSGPACK resp.status = falcon.HTTP_200 Note the use of resp.data in lieu of resp.text. If you 0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-rc1 DocumentationAPI off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') # API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') You 8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type = falcon.MEDIA_MSGPACK resp.status = falcon.HTTP_200 Note the use of resp.data in lieu of resp.text. If you 0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v1.4.1 DocumentationAPI off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') # 8adba7cc0e.png' } ] } resp.data = msgpack.packb(doc, use_bin_type=True) resp.content_type = falcon.MEDIA_MSGPACK resp.status = falcon.HTTP_200 Note the use of resp.data in lieu of resp.body. If you Falcon will figure it out, but you can realize a small performance gain by assigning directly to resp.data. Also note the use of falcon.MEDIA_MSGPACK. The falcon module provides a number of constants for 0 码力 | 158 页 | 587.88 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













