Guzzle PHP 5.3 Documentation
Response Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 1.5 Event System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . synchronous and asynchronous requests using the same interface without requiring a dependency on a specific event loop. • Pluggable HTTP handlers allows Guzzle to integrate with any method you choose for sending sending HTTP requests over the wire (e.g., cURL, sockets, PHP’s stream wrapper, non-blocking event loops like React, etc.). • Guzzle makes it so that you no longer need to fool around with cURL options, stream0 码力 | 63 页 | 275.75 KB | 10 月前3Guzzle PHP 5.3 Documentation
specific event loop. Pluggable HTTP handlers allows Guzzle to integrate with any method you choose for sending HTTP requests over the wire (e.g., cURL, sockets, PHP’s stream wrapper, non-blocking event loops Requests With a Pool Request Options Event Subscribers Environment Variables Request and Response Messages Headers Body Requests Responses Event System Event Emitters Event Priorities Working With Request TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER0 码力 | 72 页 | 312.62 KB | 10 月前3Apache Unomi 2.x - Documentation
DECLARATIONS ARE NOW REQUIRED Scopes declarations are now required in Unomi 2. When submitting an event and specifying a scope, that scope must already be declared on the platform. Scopes can be easily object properties must be declared in a JSON schema for an event to be accepted. A new property, flattenedProperties has been introduced to the event object, this property has been added to store the properties properties. If there is dynamic properties that you want to send with your event, you should use the flattenedProperties field of the event. It’s also necessary to specify the format of the values which are0 码力 | 117 页 | 4.78 MB | 1 年前3Apache Unomi 1.x - Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.2.8. How to send a login event to Unomi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 8.6. Event. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 8.6.2. Event types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 158 页 | 3.65 MB | 1 年前3Get off my thread: Techniques for moving k to background threads
thread for processing events: GUIs Client-Server applications Performing extensive processing on the event thread prevents other events from being handled.Why do we need to move work off the current thread current thread? We don’t just 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: Spawn a new thread for each event handlerHow 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 data to a dedicated0 码力 | 90 页 | 6.97 MB | 5 月前3NodeJS 中文文档 V0.2.3
没有函数处理这个事件,它将会输出调用堆栈,并随之退出应用程序。 Event: Event: Event: Event: 'newListener' 'newListener' 'newListener' 'newListener' function (event, listener) { } 该事件在添加新监听器时被触发。 Event: Event: Event: Event: 'error' 'error' 'error' 如果发生错误,'error'事件将会被触发。 这是一个特殊事件,如果没有相应的监听函数监听这个事件,node 将 会结束应用程序的执行并显示异常堆栈。 emitter.on(event, emitter.on(event, emitter.on(event, emitter.on(event, listener) listener) listener) listener) 向指定的事件监听器数组尾部添加一个新监听器。 server log('someone connected!'); }); emitter.removeListener(event, emitter.removeListener(event, emitter.removeListener(event, emitter.removeListener(event, listener) listener) listener) listener) 从指定监听器数组中删除一个监听器。0 码力 | 62 页 | 542.14 KB | 1 年前3WeRoBot 1.4.0 微信公众号开发框架文档
TextMessage ImageMessage LinkMessage LocationMessage VoiceMessage VideoMessage UnknownMessage Event Event 公共属性 SubscribeEvent UnSubscribeEvent ScanEvent ScanCodePushEvent ScanCodeWaitMsgEvent PicSysphotoEvent config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 示用户触发的事件, 如关注事件、扫描二维码事件。 在消息解析、转换完成 后, WeRoBot 会讲消息转交给 Handler 进行处理,并将 Handler hello(message): return 'Hello World!' 就是一个简单的 Handler , @robot.handler 意味着 robot 会将所有接收到的消 息( 包括 Message 和 Event ) 都转交给这个 Handler 来处理。 当然, 你也可 以编写一些只能处理特定消息的 Handler # @robot.text 修饰的 Handler 只处理文本消息 @robot.text0 码力 | 82 页 | 88.39 KB | 1 年前3WeRoBot 1.6.0 微信公众号开发框架文档
TextMessage ImageMessage LinkMessage LocationMessage VoiceMessage VideoMessage UnknownMessage Event Event 公共属性 SubscribeEvent UnSubscribeEvent ScanEvent ScanCodePushEvent ScanCodeWaitMsgEvent PicSysphotoEvent config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 示用户触发的事件, 如关注事件、扫描二维码事件。 在消息解析、转换完成 后, WeRoBot 会讲消息转交给 Handler 进行处理,并将 Handler hello(message): return 'Hello World!' 就是一个简单的 Handler , @robot.handler 意味着 robot 会将所有接收到的消 息( 包括 Message 和 Event ) 都转交给这个 Handler 来处理。 当然, 你也可 以编写一些只能处理特定消息的 Handler # @robot.text 修饰的 Handler 只处理文本消息 @robot.text0 码力 | 85 页 | 89.26 KB | 1 年前3WeRoBot 1.5.0 微信公众号开发框架文档
TextMessage ImageMessage LinkMessage LocationMessage VoiceMessage VideoMessage UnknownMessage Event Event 公共属性 SubscribeEvent UnSubscribeEvent ScanEvent ScanCodePushEvent ScanCodeWaitMsgEvent PicSysphotoEvent config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 示用户触发的事件, 如关注事件、扫描二维码事件。 在消息解析、转换完成 后, WeRoBot 会讲消息转交给 Handler 进行处理,并将 Handler hello(message): return 'Hello World!' 就是一个简单的 Handler , @robot.handler 意味着 robot 会将所有接收到的消 息( 包括 Message 和 Event ) 都转交给这个 Handler 来处理。 当然, 你也可 以编写一些只能处理特定消息的 Handler # @robot.text 修饰的 Handler 只处理文本消息 @robot.text0 码力 | 83 页 | 88.85 KB | 1 年前3WeRoBot 1.6.0 微信公众号开发框架文档
TextMessage ImageMessage LinkMessage LocationMessage VoiceMessage VideoMessage UnknownMessage Event Event 公共属性 SubscribeEvent UnSubscribeEvent ScanEvent ScanCodePushEvent ScanCodeWaitMsgEvent PicSysphotoEvent config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 示用户触发的事件, 如关注事件、扫描二维码事件。 在消息解析、转换完成 后, WeRoBot 会讲消息转交给 Handler 进行处理,并将 Handler hello(message): return 'Hello World!' 就是一个简单的 Handler , @robot.handler 意味着 robot 会将所有接收到的消 息( 包括 Message 和 Event ) 都转交给这个 Handler 来处理。 当然, 你也可 以编写一些只能处理特定消息的 Handler # @robot.text 修饰的 Handler 只处理文本消息 @robot.text0 码力 | 94 页 | 74.98 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100