Tornado 6.0 Documentation
convert_yielded(self.fetch_next_chunk()) while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() those methods are called, so the values are available during prepare. RequestHandler.data_received(chunk: bytes) → Optional[Awaitable[None]] [source] Implement this method to handle streamed request data0 码力 | 869 页 | 692.83 KB | 1 年前3Tornado 6.1 Documentation
convert_yielded(self.fetch_next_chunk()) while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() those methods are called, so the values are available during prepare. RequestHandler.data_received(chunk: bytes) → Optional[Awaitable[None]] [source] Implement this method to handle streamed request data0 码力 | 931 页 | 708.03 KB | 1 年前3Tornado 5.1 Documentation
convert_yielded(self.fetch_next_chunk()) while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is get(self): fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native those methods are called, so the values are available during prepare. RequestHandler.data_received(chunk) Implement this method to handle streamed request data. Requires the stream_request_body decorator0 码力 | 243 页 | 895.80 KB | 1 年前3Tornado 6.1 Documentation
convert_yielded(self.fetch_next_chunk()) while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is get(self): fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native those methods are called, so the values are available during prepare. RequestHandler.data_received(chunk: bytes) → Optional[Awaitable[None]] Implement this method to handle streamed request data. Requires0 码力 | 245 页 | 904.24 KB | 1 年前3Tornado 6.0 Documentation
convert_yielded(self.fetch_next_chunk()) while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is get(self): fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native 42 Chapter 6. Documentation Tornado Documentation, Release 6.0.4 RequestHandler.data_received(chunk: bytes) → Optional[Awaitable[None]] Implement this method to handle streamed request data. Requires0 码力 | 245 页 | 885.76 KB | 1 年前3Tornado 6.2 Documentation
convert_yielded(self.fetch_next_chunk()) while True: chunk = await fetch_future if chunk is None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) await self.flush() This is get(self): fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native those methods are called, so the values are available during prepare. RequestHandler.data_received(chunk: bytes) → Optional[Awaitable[None]] Implement this method to handle streamed request data. Requires0 码力 | 260 页 | 1.06 MB | 1 年前3Tornado 5.1 Documentation
convert_yielded(self.fetch_next_chunk()) while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() those methods are called, so the values are available during prepare. RequestHandler.data_received(chunk) Implement this method to handle streamed request data. Requires the stream_request_body decorator0 码力 | 359 页 | 347.32 KB | 1 年前3Tornado 4.5 Documentation
fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() most usable with @gen.coroutine. If fetch_next_chunk() uses async def, then it must be called as fetch_future = tornado.gen.convert_yielded(self.fetch_next_chunk()) to start the background processing. Looping those methods are called, so the values are available during prepare. RequestHandler.data_received(chunk) Implement this method to handle streamed request data. Requires the stream_request_body decorator0 码力 | 333 页 | 322.34 KB | 1 年前3Tornado 4.5 Documentation
fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) 14 Chapter 4. Documentation Tornado Documentation, Release 4.5.3 fetch_future = self.fetch_next_chunk() yield most usable with @gen.coroutine. If fetch_next_chunk() uses async def, then it must be called as fetch_future = tornado.gen.convert_yielded(self.fetch_next_chunk()) to start the background processing. Looping those methods are called, so the values are available during prepare. RequestHandler.data_received(chunk) Implement this method to handle streamed request data. Requires the stream_request_body decorator0 码力 | 222 页 | 833.04 KB | 1 年前3Tornado 6.4 Documentation
convert_yielded(self.fetch_next_chunk()) while True: chunk = await fetch_future if chunk is None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) await self.flush() This is get(self): fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native those methods are called, so the values are available during prepare. RequestHandler.data_received(chunk: bytes) → Optional[Awaitable[None]] Implement this method to handle streamed request data. Requires0 码力 | 268 页 | 1.09 MB | 1 年前3
共 145 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15