开源软件名称(OpenSource Name):bsm/lua-resty-http开源软件地址(OpenSource Url):https://github.com/bsm/lua-resty-http开源编程语言(OpenSource Language):Lua 58.5%开源软件介绍(OpenSource Introduction):Namelua-resty-http - Lua HTTP client driver for ngx_lua Example
APInew
Creates a HTTP object. connect
Attempts to connect to the remote Before actually resolving the host name and connecting to the remote backend, this method will always look up the connection pool for matched idle connections created by previous calls of this method. An optional Lua
request
Attempts to retrieve data from a remote location. An optional Lua
Returns a
set_timeout
Sets the timeout (in ms) protection for subsequent operations, including the set_keepalive
Puts the current connection immediately into the ngx_lua cosocket connection pool. You can specify the max idle timeout (in ms) when the connection is in the pool and the maximal size of the pool every nginx worker process. In case of success, returns Only call this method in the place you would have called the get_reused_times
This method returns the (successfully) reused times for the current connection. In case of error, it returns close
Closes the current connection and returns the status. In case of success, returns LicenceSome code and documentation parts were (shamelessly) taken from lua-resty-redis, MIT, Copyright by Yichun Zhang. Greatly inspired by excon, MIT, Copyright by Wesley Beary. This code is covered by MIT License. (The MIT License) Copyright (c) 2013 Black Square Media Ltd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 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, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论