Guzzle PHP 5.3 Documentation(blocking) requests when the future request option is not speci- fied. This means that the request will complete immediately, and if an error is encountered, a GuzzleHttp\Exception\RequestException will be thrown event listeners to add to each request’s before event. • complete: Callable or array representing the event listeners to add to each request’s complete event. • error: Callable or array representing the event Callable or array representing the event listeners to add to each request’s end event. The “before”, “complete”, “error”, and “end” event options accept a callable or an array of associative arrays where each0 码力 | 63 页 | 275.75 KB | 11 月前3
Guzzle PHP 5.3 Documentation(blocking) requests when the future request option is not specified. This means that the request will complete immediately, and if an error is encountered, a GuzzleHttp\Exception\RequestException will be thrown event listeners to add to each request’s before event. complete: Callable or array representing the event listeners to add to each request’s complete event. error: Callable or array representing the event Callable or array representing the event listeners to add to each request’s end event. The “before”, “complete”, “error”, and “end” event options accept a callable or an array of associative arrays where each0 码力 | 72 页 | 312.62 KB | 11 月前3
Falcon v3.0.0-b1 Documentation(Press CTRL+C to quit) INFO: Waiting for application startup. INFO: Application startup complete. Let’s verify it works by trying to access the URL provided above by uvicorn: $ http http://127 redis_host = self.DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR A complete Redis cache component (cache.py) could look like: import msgpack class RedisCache: PREFIX resp, data): resp.content_type, resp.data = msgpack.unpackb(data, raw=False) resp.complete = True resp.context.cached = True async def process_startup(self, scope, event):0 码力 | 1028 页 | 725.86 KB | 1 年前3
Falcon v3.0.0 Documentation(Press CTRL+C to quit) INFO: Waiting for application startup. INFO: Application startup complete. We can verify it works by trying to access the URL provided above by uvicorn: $ http http://127 redis_host = self.DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup() resp, data): resp.content_type, resp.data = msgpack.unpackb(data, raw=False) resp.complete = True resp.context.cached = True async def process_startup(self, scope, event):0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 Documentation(Press CTRL+C to quit) INFO: Waiting for application startup. INFO: Application startup complete. We can verify it works by trying to access the URL provided above by uvicorn: $ http http://127 redis_host = self.DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup() resp, data): resp.content_type, resp.data = msgpack.unpackb(data, raw=False) resp.complete = True resp.context.cached = True async def process_startup(self, scope, event):0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 Documentation(Press CTRL+C to quit) INFO: Waiting for application startup. INFO: Application startup complete. We can verify it works by trying to access the URL provided above by uvicorn: $ http http://127 redis_host = self.DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup() resp, data): resp.content_type, resp.data = msgpack.unpackb(data, raw=False) resp.complete = True resp.context.cached = True async def process_startup(self, scope, event):0 码力 | 1041 页 | 730.21 KB | 1 年前3
CakePHP Cookbook 2.x
ini. Optional Configuration There are a few other items that can be configured. Most developers complete these laundry-list items, but they’re not required for this tutorial. One is defining a custom string Request We’ve covered the basic ingredients in CakePHP, so let’s look at how objects work together to complete a basic request. Continuing with our original request example, let’s imagine that our friend Ricardo rendered inside a layout. 8. Additional controller callbacks (like afterFilter) may be applied. The complete, rendered view code is sent to Ricardo’s browser. © Copyright 2023 Cake Software Foundation, Inc0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 3.x
--prefer-dist cakephp/app:"^3.10" cms The advantage to using Composer is that it will automatically complete some important set up tasks, such as setting the correct file permissions and creating your config/app displays flash messages and clears the corresponding session variable. Finally, after saving is complete, we use Cake\Controller\Controller::redirect to send the user back to the articles list. The param Cake\Database\Type::map() is deprecated. Use getMap() instead. Cake\Database\Type::map() to set complete types map is deprecated. Use setMap() instead. Passing $className as object to Cake\Database\Type::map()0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
--prefer-dist cakephp/app:"^3.10" cms The advantage to using Composer is that it will automatically complete some important set up tasks, such as setting the correct file permissions and creating your config/app displays flash mes- sages and clears the corresponding session variable. Finally, after saving is complete, we use Cake\Controller\ Controller::redirect to send the user back to the articles list. The param Cake\Database\Type::map() is deprecated. Use getMap() instead. • Cake\Database\Type::map() to set complete types map is deprecated. Use setMap() instead. • Passing $className as object to Cake\Database\Type::map()0 码力 | 967 页 | 2.80 MB | 1 年前3
Falcon v3.0.0-b2 Documentation0.1:8000 (Press CTRL+C to quit) INFO: Waiting for application startup. INFO: Application startup complete. We can verify it works by trying to access the URL provided above by uvicorn: $ http http://127 redis_host = self.DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup() _deserialize_response(self, resp, data): resp.content_type, resp.data = msgpack.unpackb(data, raw=False) resp.complete = True resp.context.cached = True async def process_startup(self, scope, event): if self._redis0 码力 | 340 页 | 1.15 MB | 1 年前3
共 63 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













