Skip to content

Commit d12d6a9

Browse files
committed
doc: update README with changed APIs
1 parent 4c88b02 commit d12d6a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ local body = res.body
9191
local httpc = require("resty.http").new()
9292

9393
-- First establish a connection
94-
local ok, err = httpc:connect({
94+
local ok, err, ssl_session = httpc:connect({
9595
scheme = "https",
9696
host = "127.0.0.1",
9797
port = 8080,
@@ -153,7 +153,7 @@ Creates the HTTP connection object. In case of failures, returns `nil` and a str
153153

154154
## connect
155155

156-
`syntax: ok, err = httpc:connect(options)`
156+
`syntax: ok, err, ssl_session = httpc:connect(options)`
157157

158158
Attempts to connect to the web server while incorporating the following activities:
159159

@@ -172,6 +172,7 @@ The options table has the following fields:
172172
* `pool_size`: option as per [OpenResty docs](https://github.com/openresty/lua-nginx-module#tcpsockconnect)
173173
* `backlog`: option as per [OpenResty docs](https://github.com/openresty/lua-nginx-module#tcpsockconnect)
174174
* `proxy_opts`: sub-table, defaults to the global proxy options set, see [set\_proxy\_options](#set_proxy_options).
175+
* `ssl_reused_session`: option as per [OpenResty docs](https://github.com/openresty/lua-nginx-module#tcpsocksslhandshake)
175176
* `ssl_verify`: option as per [OpenResty docs](https://github.com/openresty/lua-nginx-module#tcpsocksslhandshake), except that it defaults to `true`.
176177
* `ssl_server_name`: option as per [OpenResty docs](https://github.com/openresty/lua-nginx-module#tcpsocksslhandshake)
177178
* `ssl_send_status_req`: option as per [OpenResty docs](https://github.com/openresty/lua-nginx-module#tcpsocksslhandshake)

0 commit comments

Comments
 (0)