Tornado 4.5 Documentation
parsing tornado.stack_context — Exception handling across asynchronous callbacks tornado.testing — Unit testing support for asynchronous code tornado.util — General-purpose utilities Frequently Asked _class=None, **kwargs) A blocking HTTP client. This interface is provided for convenience and testing; most applications that are running an IOLoop will want to use AsyncHTTPClient instead. Typical usage Wraps a resolver with a mapping of overrides. This can be used to make local DNS changes (e.g. for testing) without modifying system-wide settings. The mapping can contain either host strings or host-port0 码力 | 333 页 | 322.34 KB | 1 年前3Tornado 6.5 Documentation
Wraps a resolver with a mapping of overrides. This can be used to make local DNS changes (e.g. for testing) without modifying system-wide settings. The mapping can be in three formats: { # Hostname to project, or create a new one. • Depending on permissions required, you may need to set your app to “testing” mode and add your account as a test user, or go through a verfication process. You may also need def get(self): new_entry = await self.twitter_request( "/statuses/update", post_args={"status": "Testing Tornado Web Server"}, access_token=self.current_user["access_token"]) if not new_entry: # Call0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.1 Documentation
Wraps a resolver with a mapping of overrides. This can be used to make local DNS changes (e.g. for testing) without modifying system-wide settings. The mapping can be in three formats: 6.4. Asynchronous def get(self): new_entry = await self.twitter_request( "/statuses/update", post_args={"status": "Testing Tornado Web Server"}, access_token=self.current_user["access_token"]) if not new_entry: # Call group_dict('application')) New in version 3.1. 6.7.5 tornado.testing — Unit testing support for asynchronous code Support classes for automated testing. • AsyncTestCase and AsyncHTTPTestCase: Subclasses of0 码力 | 245 页 | 904.24 KB | 1 年前3Tornado 6.4 Documentation
Wraps a resolver with a mapping of overrides. This can be used to make local DNS changes (e.g. for testing) without modifying system-wide settings. The mapping can be in three formats: { # Hostname to project, or create a new one. • Depending on permissions required, you may need to set your app to “testing” mode and add your account as a test user, or go through a verfication process. You may also need def get(self): new_entry = await self.twitter_request( "/statuses/update", post_args={"status": "Testing Tornado Web Server"}, access_token=self.current_user["access_token"]) if not new_entry: # Call0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
Wraps a resolver with a mapping of overrides. This can be used to make local DNS changes (e.g. for testing) without modifying system-wide settings. The mapping can be in three formats: { # Hostname to project, or create a new one. • Depending on permissions required, you may need to set your app to “testing” mode and add your account as a test user, or go through a verfication process. You may also need def get(self): new_entry = await self.twitter_request( "/statuses/update", post_args={"status": "Testing Tornado Web Server"}, access_token=self.current_user["access_token"]) if not new_entry: # Call0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
Wraps a resolver with a mapping of overrides. This can be used to make local DNS changes (e.g. for testing) without modifying system-wide settings. The mapping can be in three formats: { # Hostname to project, or create a new one. • Depending on permissions required, you may need to set your app to “testing” mode and add your account as a test user, or go through a verfication process. You may also need def get(self): new_entry = await self.twitter_request( "/statuses/update", post_args={"status": "Testing Tornado Web Server"}, access_token=self.current_user["access_token"]) if not new_entry: # Call0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 4.5 Documentation
_class=None, **kwargs) A blocking HTTP client. This interface is provided for convenience and testing; most applications that are running an IOLoop will want to use AsyncHTTPClient instead. Typical usage Wraps a resolver with a mapping of overrides. This can be used to make local DNS changes (e.g. for testing) without modifying system-wide settings. The mapping can contain either host strings or host-port def get(self): new_entry = yield self.twitter_request( "/statuses/update", post_args={"status": "Testing Tornado Web Server"}, access_token=self.current_user["access_token"]) if not new_entry: # Call0 码力 | 222 页 | 833.04 KB | 1 年前3Tornado 6.3 Documentation
Wraps a resolver with a mapping of overrides. This can be used to make local DNS changes (e.g. for testing) without modifying system-wide settings. The mapping can be in three formats: 6.4. Asynchronous def get(self): new_entry = await self.twitter_request( "/statuses/update", post_args={"status": "Testing Tornado Web Server"}, access_token=self.current_user["access_token"]) if not new_entry: # Call group_dict('application')) New in version 3.1. 6.7.5 tornado.testing — Unit testing support for asynchronous code Support classes for automated testing. • AsyncTestCase and AsyncHTTPTestCase: Subclasses of0 码力 | 264 页 | 1.06 MB | 1 年前3Tornado 5.1 Documentation
Wraps a resolver with a mapping of overrides. This can be used to make local DNS changes (e.g. for testing) without modifying system-wide settings. The mapping can be in three formats: { # Hostname to def get(self): new_entry = await self.twitter_request( "/statuses/update", post_args={"status": "Testing Tornado Web Server"}, access_token=self.current_user["access_token"]) if not new_entry: # Call other_coroutine) New in version 3.1. 5.7.6 tornado.testing — Unit testing support for asynchronous code Support classes for automated testing. • AsyncTestCase and AsyncHTTPTestCase: Subclasses of0 码力 | 243 页 | 895.80 KB | 1 年前3Tornado 6.0 Documentation
Wraps a resolver with a mapping of overrides. This can be used to make local DNS changes (e.g. for testing) without modifying system-wide settings. The mapping can be in three formats: { # Hostname to group_dict('application')) New in version 3.1. 6.7.5 tornado.testing — Unit testing support for asynchronous code Support classes for automated testing. • AsyncTestCase and AsyncHTTPTestCase: Subclasses of of unittest.TestCase with additional support for testing asynchronous (IOLoop-based) code. • ExpectLog: Make test logs less spammy. • main(): A simple test runner (wrapper around unittest.main()) with0 码力 | 245 页 | 885.76 KB | 1 年前3
共 20 条
- 1
- 2