Tornado 5.1 Documentation
IOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: 5.1. User’s guide 15 Tornado Documentation, Release 5.1.1 # run_sync() doesn't take get(self): self.write('') def post(self): self.set_header("Content-Type" set_header("Content-Type", "text/plain") self.write("You wrote " + self.get_body_argument("message")) Since the HTML form encoding is ambiguous as to whether an argument is a single value or a list with one0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 4.5 Documentation
method can simply raise an exception (as opposed to the ad-hoc error handling common in callback-oriented interfaces), and Futures lend themselves well to use with coroutines. Coroutines will be discussed IOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current() get(self): self.write('') def post(self): self.set_header("Content-Type"0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 4.5 Documentation
method can simply raise an exception (as opposed to the ad-hoc error handling common in callback-oriented interfaces), and Futures lend themselves well to use with coroutines. Coroutines will be discussed IOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current() write('')0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 5.1 Documentation
IOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current() write('') set_header("Content-Type", "text/plain") self.write("You wrote " + self.get_body_argument("message")) Since the HTML form encoding is ambiguous as to whether an argument is a single value or a list0 码力 | 359 页 | 347.32 KB | 1 年前3
Tornado 6.1 Documentation
IOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: 6.1. User’s guide 17 Tornado Documentation, Release 6.1 # run_sync() doesn't take arguments get(self): self.write('') def post(self): self.set_header("Content-Type" set_header("Content-Type", "text/plain") self.write("You wrote " + self.get_body_argument("message")) Since the HTML form encoding is ambiguous as to whether an argument is a single value or a list with one0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 6.0 Documentation
IOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current() get(self): self.write('') def post(self): self.set_header("Content-Type" set_header("Content-Type", "text/plain") self.write("You wrote " + self.get_body_argument("message")) Since the HTML form encoding is ambiguous as to whether an argument is a single value or a list with one0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.5 DocumentationIOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current() get(self): self.write('') def post(self): self.set_header("Content-Type" set_header("Content-Type", "text/plain") self.write("You wrote " + self.get_body_argument("message")) Since the HTML form encoding is ambiguous as to whether an argument is a single value or a list with one0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.4 Documentation
IOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current() get(self): self.write('') def post(self): self.set_header("Content-Type" set_header("Content-Type", "text/plain") self.write("You wrote " + self.get_body_argument("message")) Since the HTML form encoding is ambiguous as to whether an argument is a single value or a list with one0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.2 Documentation
IOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current() get(self): self.write('') def post(self): self.set_header("Content-Type" set_header("Content-Type", "text/plain") self.write("You wrote " + self.get_body_argument("message")) Since the HTML form encoding is ambiguous as to whether an argument is a single value or a list with one0 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 6.4 Documentation
IOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current() get(self): self.write('') def post(self): self.set_header("Content-Type" set_header("Content-Type", "text/plain") self.write("You wrote " + self.get_body_argument("message")) Since the HTML form encoding is ambiguous as to whether an argument is a single value or a list with one0 码力 | 268 页 | 1.09 MB | 1 年前3
共 20 条
- 1
- 2













