@@ -91,7 +91,7 @@ local body = res.body
91
91
local httpc = require (" resty.http" ).new ()
92
92
93
93
-- First establish a connection
94
- local ok , err = httpc :connect ({
94
+ local ok , err , ssl_session = httpc :connect ({
95
95
scheme = " https" ,
96
96
host = " 127.0.0.1" ,
97
97
port = 8080 ,
@@ -153,7 +153,7 @@ Creates the HTTP connection object. In case of failures, returns `nil` and a str
153
153
154
154
## connect
155
155
156
- ` syntax: ok, err = httpc:connect(options)`
156
+ ` syntax: ok, err, ssl_session = httpc:connect(options)`
157
157
158
158
Attempts to connect to the web server while incorporating the following activities :
159
159
@@ -172,6 +172,7 @@ The options table has the following fields:
172
172
* ` pool_size` : option as per [OpenResty docs ](https :// github .com / openresty / lua - nginx - module # tcpsockconnect )
173
173
* ` backlog` : option as per [OpenResty docs ](https :// github .com / openresty / lua - nginx - module # tcpsockconnect )
174
174
* ` 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 )
175
176
* ` ssl_verify` : option as per [OpenResty docs ](https :// github .com / openresty / lua - nginx - module # tcpsocksslhandshake ), except that it defaults to ` true` .
176
177
* ` ssl_server_name` : option as per [OpenResty docs ](https :// github .com / openresty / lua - nginx - module # tcpsocksslhandshake )
177
178
* ` ssl_send_status_req` : option as per [OpenResty docs ](https :// github .com / openresty / lua - nginx - module # tcpsocksslhandshake )
0 commit comments