ThinkJS 2.0 中文文档
��� �������� ThinkJS �� Hook � Middleware �������������������� ThinkJS ������������������������������� ���� WebSocket � ������� ������������� Hook � Middleware ����� HTTP ���� [2015-10-12 14:10:03] |-- common | | |-- bootstrap | | | |-- generate_icon.js | | | `-- middleware.js | | |-- config | | | |-- config.js | | | |-- env | | global.formatDate = obj => { ... } JavaScript ����� // src/common/bootstrap/middleware.js think.middleware('replace_image', http => { ... }); JavaScript src/common/config 'use strict';0 码力 | 238 页 | 1.87 MB | 1 年前3Guzzle PHP v5 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 1.5 Handlers and Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 1.5.1 Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 1.5.2 Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 1.5.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 1.6.2 History Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 1.6.3 Test Web0 码力 | 49 页 | 231.08 KB | 10 月前3Guzzle PHP 7.0 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 1.5 Handlers and Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 1.5.1 Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 1.5.2 Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 1.5.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 1.6.2 History Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 1.6.3 Test Web0 码力 | 50 页 | 235.39 KB | 10 月前3Scrapy 0.22 Documentation
. . . . . . . . . . 117 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing Yes. Support for HTTP proxies is provided (since Scrapy 0.8) through the HTTP Proxy downloader middleware. See HttpProxyMiddleware. 5.1.6 How can I scrape an item with attributes in different pages?0 码力 | 199 页 | 926.97 KB | 1 年前3Guzzle PHP 6.5 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 1.5 Handlers and Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 1.5.1 Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 1.5.2 Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 1.5.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 1.6.2 History Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 1.6.3 Test Web0 码力 | 50 页 | 237.04 KB | 10 月前3Scrapy 0.9 Documentation
. . . . . . . . . . . 87 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware and before start parsing it. It can be used used for modifying the response body before parsing Yes. Support for HTTP proxies is provided (since Scrapy 0.8) through the HTTP Proxy downloader middleware. See HttpProxyMiddleware. 69 Scrapy Documentation, Release 0.9 5.1.5 Scrapy crashes with: ImportError:0 码力 | 156 页 | 764.56 KB | 1 年前3Scrapy 1.3 Documentation
. . . . . . . . . . 169 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing the failure's type: if failure.check(HttpError): # these exceptions come from HttpError spider middleware # you can get the non-200 response response = failure.value.response self.logger.error('HttpError0 码力 | 272 页 | 1.11 MB | 1 年前3Scrapy 0.20 Documentation
. . . . . . . . . . 115 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing Yes. Support for HTTP proxies is provided (since Scrapy 0.8) through the HTTP Proxy downloader middleware. See HttpProxyMiddleware. 5.1.6 How can I scrape an item with attributes in different pages?0 码力 | 197 页 | 917.28 KB | 1 年前3Scrapy 0.18 Documentation
. . . . . . . . . . 113 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing Yes. Support for HTTP proxies is provided (since Scrapy 0.8) through the HTTP Proxy downloader middleware. See HttpProxyMiddleware. 5.1.6 How can I scrape an item with attributes in different pages?0 码力 | 201 页 | 929.55 KB | 1 年前3Scrapy 1.2 Documentation
. . . . . . . . . . 165 6.2 Downloader Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 6.3 Spider Middleware . . . . . . . . . . . . . . . . . . . . adapt_response(response) A method that receives the response as soon as it arrives from the spider middleware, before the spider starts parsing it. It can be used to modify the response body before parsing the failure's type: if failure.check(HttpError): # these exceptions come from HttpError spider middleware # you can get the non-200 response response = failure.value.response self.logger.error('HttpError0 码力 | 266 页 | 1.10 MB | 1 年前3
共 680 条
- 1
- 2
- 3
- 4
- 5
- 6
- 68