Guzzle PHP v5 Documentation35 1.5.2 Middleware 36 1.5.3 HandlerStack 38 1.5.4 Creating a Handler 39 1.6 Testing Guzzle Clients 40 1.6.1 Mock Handler 40 1.6.2 History Middleware 40 1.6.3 Test Web Server 41 1.7 FAQ 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 $ \geq $ wrapper to send HTTP requests if cURL is not installed. Alternatively, you can provide your own HTTP handler used to send requests. ## I nstallation The recommended way to install Guzzle is with Composer0 码力 | 49 页 | 231.08 KB | 1 年前3
Guzzle PHP 5.3 DocumentationRequirements 1. PHP 5.4.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 $ \geq $ wrapper to send HTTP requests if cURL is not installed. Alternatively, you can provide your own HTTP handler used to send requests. #### 1.1.2 Installation The recommended way to install Guzzle is with Composer Clients Clients are used to create requests, create transactions, send requests through an HTTP handler, and return a response. You can add default request options to a client that are applied to every0 码力 | 63 页 | 275.75 KB | 1 年前3
WeRoBot 1.2.0 微信公众号开发框架文档- 在独立服务器上部署 - 在 SAE 上部署 - Handler - 类型过滤 - robot.key_click —— 回应自定义菜单 - robot.filter —— 回应有指定文本的消息 - Session - 开启/关闭 Session - 修改 Handler 以使用 Session - WeRoBot.Client —— World,会给收到的每一条信息回复 Hello World import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.handler def hello(message): return 'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] ,WeRoBot 会将消息转交给 Handler 进行处理,并将 Handler 的返回值返回给微信服务器。 在刚才的 Hello World 中,我们编写的 @robot.handler def hello(message): return 'Hello World!' 就是一个简单的 Handler,@robot.handler 意味着 robot 会将所有接收到的消息(包括0 码力 | 70 页 | 82.33 KB | 2 年前3
deploying the networking TSexecution calling the initiating function, and before the initiating function returns), the completion handler shall be submitted for execution (in a manner that shall not block forward progress of the caller0 码力 | 44 页 | 892.77 KB | 1 年前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 thread for each event handler ## How 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 dedicated 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 ## How do0 码力 | 90 页 | 6.97 MB | 1 年前3
gevent-socketio Documentation
Release 0.3.1decoded dictionaries also. socketio.packet Handler is a lower-level transport handler. It is responsible for calling your WSGI application socketio.handler Transports are responsible for translating WSGI server to the WSGI app to be served, while dispatching any Socket.IO related activities to the handler and the transports. socketio.server Auto-generated indexes: • Index • Module Index ## References John Anderson. Created using Sphinx 1.2.2. ## Python Module Index ## S ## S socketio socketio.handler socketio.mixins socketio.namespace socketio.packet socketio.server socketio.transports socketio0 码力 | 91 页 | 118.05 KB | 2 年前3
Apache Karaf Decanter 2.x - DocumentationCamel Routes JMX MBeans. ##### 1.2.9. CAMEL TRACER & NOTIFIER Decanter provides a Camel Tracer Handler that you can set on a Camel Tracer. It also provides a Camel Event Notifier. ## CAMEL TRACER If decanter-collector-camel feature provides the Camel Tracer Handler: karaf@root()> feature:install decanter-collector-camel Now, you can use the Decanter Camel Tracer Handler in a tracer that you can use in routes. the following route definition shows how to enable tracer on a route, and use the Decanter Tracer Handler in the Camel Tracer:0 码力 | 64 页 | 812.01 KB | 1 年前3
WeRoBot 1.4.0 微信公众号开发框架文档- 在独立服务器上部署 - 在 SAE 上部署 - Handler - 类型过滤 - robot.key_click —— 回应自定义菜单 - robot.filter —— 回应有指定文本的消息 - Session - 开启/关闭 Session - 修改 Handler 以使用 Session - WeRoBot.Client —— World,会给收到的每一条信息回复 Hello World import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.handler def hello(message): return 'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] ,WeRoBot 会将消息转交给 Handler 进行处理,并将 Handler 的返回值返回给微信服务器。 在刚才的 Hello World 中,我们编写的 @robot.handler def hello(message): return 'Hello World!' 就是一个简单的 Handler,@robot.handler 意味着 robot 会将所有接收到的消息(包括0 码力 | 82 页 | 88.39 KB | 2 年前3
WeRoBot 1.4.1 微信公众号开发框架文档- 在独立服务器上部署 - 在 SAE 上部署 - Handler - 类型过滤 - robot.key_click —— 回应自定义菜单 - robot.filter —— 回应有指定文本的消息 - Session - 开启/关闭 Session - 修改 Handler 以使用 Session - WeRoBot.Client —— World,会给收到的每一条信息回复 Hello World import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.handler def hello(message): return 'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] ,WeRoBot 会将消息转交给 Handler 进行处理,并将 Handler 的返回值返回给微信服务器。 在刚才的 Hello World 中,我们编写的 @robot.handler def hello(message): return 'Hello World!' 就是一个简单的 Handler,@robot.handler 意味着 robot 会将所有接收到的消息(包括0 码力 | 82 页 | 88.42 KB | 2 年前3
WeRoBot 1.6.0 微信公众号开发框架文档- 在独立服务器上部署 - 在 SAE 上部署 - Handler - 类型过滤 - robot.key_click —— 回应自定义菜单 - robot.filter —— 回应有指定文本的消息 - Session - 开启/关闭 Session - 修改 Handler 以使用 Session - WeRoBot.Client —— World,会给收到的每一条信息回复 Hello World import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.handler def hello(message): return 'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] ,WeRoBot 会将消息转交给 Handler 进行处理,并将 Handler 的返回值返回给微信服务器。 在刚才的 Hello World 中,我们编写的 @robot.handler def hello(message): return 'Hello World!' 就是一个简单的 Handler,@robot.handler 意味着 robot 会将所有接收到的消息(包括0 码力 | 85 页 | 89.26 KB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
ResponseStreamHandlerMiddlewareClientGuzzleHTTP clientRequestWeRoBotSessionMessage微信公众号开发Networking TSasynchronous operationsinjected operationscompletion handlerNetTSbackground threadsspawn a new threaddedicated background threadthread poolevent handlergevent-socketioSocket.IOWebSocketNamespaceTransportApache Karaf DecanterCollectorsConfiguration FileAppendAlerters微信公众号消息处理自定义菜单部署微信公众号开发框架会话管理













