Guzzle PHP 6.5 DocumentationDecorators Handlers and Middleware Handlers Middleware HandlerStack Creating a Handler Testing Guzzle Clients Mock Handler History Middleware Test Web Server Using the test server FAQ Does Guzzle require Requirements 1. PHP 5.5.0 2. To use the PHP stream handler, allow_url_fopen must be enabled in your system's php.ini. 3. To use the cURL handler, you must have a recent version of cURL >= 7.19.4 compiled wrapper to send HTTP requests if cURL is not installed. Alternatively, you can provide your own HTTP handler used to send requests. Keep in mind that cURL is still required for sending concurrent requests.0 码力 | 65 页 | 311.42 KB | 11 月前3
Guzzle PHP 7.0 DocumentationDecorators Handlers and Middleware Handlers Middleware HandlerStack Creating a Handler Testing Guzzle Clients Mock Handler History Middleware Test Web Server Using the test server FAQ Does Guzzle require Requirements 1. PHP 5.5.0 2. To use the PHP stream handler, allow_url_fopen must be enabled in your system's php.ini. 3. To use the cURL handler, you must have a recent version of cURL >= 7.19.4 compiled wrapper to send HTTP requests if cURL is not installed. Alternatively, you can provide your own HTTP handler used to send requests. Keep in mind that cURL is still required for sending concurrent requests.0 码力 | 64 页 | 310.93 KB | 11 月前3
Guzzle PHP 7.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 1.5.4 Creating a Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 1.6 Testing Guzzle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 1.6.1 Mock Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 1.6.2 History Requirements 1. PHP 5.5.0 2. To use the PHP stream handler, allow_url_fopen must be enabled in your system’s php.ini. 3. To use the cURL handler, you must have a recent version of cURL >= 7.19.4 compiled0 码力 | 50 页 | 235.39 KB | 11 月前3
Guzzle PHP v5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 1.5.4 Creating a Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 1.6 Testing Guzzle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 1.6.1 Mock Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 1.6.2 History Requirements 1. PHP 5.5.0 2. To use the PHP stream handler, allow_url_fopen must be enabled in your system’s php.ini. 3. To use the cURL handler, you must have a recent version of cURL >= 7.19.4 compiled0 码力 | 49 页 | 231.08 KB | 11 月前3
Guzzle PHP v5 DocumentationDecorators Handlers and Middleware Handlers Middleware HandlerStack Creating a Handler Testing Guzzle Clients Mock Handler History Middleware Test Web Server Using the test server FAQ Does Guzzle require Requirements 1. PHP 5.5.0 2. To use the PHP stream handler, allow_url_fopen must be enabled in your system's php.ini. 3. To use the cURL handler, you must have a recent version of cURL >= 7.19.4 compiled wrapper to send HTTP requests if cURL is not installed. Alternatively, you can provide your own HTTP handler used to send requests. Installation The recommended way to install Guzzle is with Composer [http://getcomposer0 码力 | 62 页 | 309.78 KB | 11 月前3
Guzzle PHP 6.5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 1.5.4 Creating a Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 1.6 Testing Guzzle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 1.6.1 Mock Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 1.6.2 History Requirements 1. PHP 5.5.0 2. To use the PHP stream handler, allow_url_fopen must be enabled in your system’s php.ini. 3. To use the cURL handler, you must have a recent version of cURL >= 7.19.4 compiled0 码力 | 50 页 | 237.04 KB | 11 月前3
Tornado 6.5 Documentationexpression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments and will be passed to the handler’s HTTP method subclasses of RequestHandler. The main entry point for a handler subclass is a method named after the HTTP method being handled: get(), post(), etc. Each handler may define one or more of these methods to handle with arguments corresponding to the capturing groups of the routing rule that matched. Within a handler, call methods such as RequestHandler.render or RequestHandler.write to produce a response. render()0 码力 | 272 页 | 1.12 MB | 3 月前3
Get off my thread: Techniques for moving k to background threadsjust need to move the work, we need to prevent blocking on our event-handling threads. void event_handler(){ auto handle=spawn_background_task(); handle.wait(); // no benefit }Aside: Non-Blocking vs Lock-free event handler Pass data to a dedicated background threadHow do we move work off the current thread? Possible ways to move the work off the current thread: Spawn a new thread for each event handler Pass thread? Possible ways to move the work off the current thread: Spawn a new thread for each event handler Pass data to a dedicated background thread Submit tasks to a generic thread pool Submit tasks to0 码力 | 90 页 | 6.97 MB | 6 月前3
Heterogeneous Modern C++ with SYCL 2020std::vectordA{ … }, dB{ … }, dO{ … }; try { sycl::queue gpuQueue{sycl::gpu_selector_v, async_handler{}}; sycl::buffer bufA{dA.data(), sycl::range{dA.size()}}; sycl::buffer bufB{dB.data() size()}}; sycl::buffer bufO{dO.data(), sycl::range{dO.size()}}; gpuQueue.submit([&](sycl::handler &cgh){ sycl::accessor inA(bufA, cgh, sycl::read_only); sycl::accessor inB(bufB, cgh std::vector dA{ … }, dB{ … }, dO{ … }; try { sycl::queue gpuQueue{sycl::gpu_selector_v, async_handler{}}; sycl::buffer bufA{dA.data(), sycl::range{dA.size()}}; sycl::buffer bufB{dB.data() 0 码力 | 114 页 | 7.94 MB | 6 月前3
Tornado 6.5 Documentationexpression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments and will be passed to the handler’s HTTP method subclasses of RequestHandler. The main entry point for a handler subclass is a method named after the HTTP method being handled: get(), post(), etc. Each handler may define one or more of these methods to handle called with arguments corresponding to the capturing groups of the routing rule that matched.Within a handler, call methods such as RequestHandler.render or RequestHandler.write to produce a response. render()0 码力 | 437 页 | 405.14 KB | 3 月前3
共 130 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13













