File tree Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Expand file tree Collapse file tree 2 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ local default_config = {
155155 --- @type boolean Add ` --compressed` argument when ` Accept-Encoding` header includes
156156 --- `gzip`
157157 set_compressed = false ,
158+ --- @type table<string , Certificate> Table containing certificates for each domains
159+ certificates = {},
158160 },
159161 },
160162 },
@@ -171,6 +173,17 @@ local default_config = {
171173 enable = true ,
172174 --- @type string
173175 pattern = " .*%.env.*" ,
176+ --- @type fun (): string[]
177+ find = function ()
178+ local config = require (" rest-nvim.config" )
179+ return vim .fs .find (function (name , _ )
180+ return name :match (config .env .pattern )
181+ end , {
182+ path = vim .fn .getcwd (),
183+ type = " file" ,
184+ limit = math.huge ,
185+ })
186+ end ,
174187 },
175188 --- @class rest.Config.UI
176189 ui = {
Original file line number Diff line number Diff line change @@ -185,11 +185,17 @@ rest.Opts.Clients.Curl *rest.Opts.Clients.Curl*
185185rest.Opts.Clients.Curl.Opts *rest.Opts.Clients.Curl.Opts*
186186
187187 Fields: ~
188- {set_compressed?} (boolean) Add `-- compressed` argument when `Accept- Encoding` header includes `gzip`
189- (Default: `false` )
190- {certificates?} (Certificates[]) Add `-- cert` or `-- key ` to the `curl` command when required with
191- specific domains
192- (default: nil)
188+ {set_compressed?} (boolean) Add `-- compressed` argument when `Accept- Encoding` header includes `gzip`
189+ (Default: `false` )
190+ {certificates?} (table<string,Certificate>) Add `-- cert` , `-- key ` or `-- pem` to the `curl` command when required with specific domains
191+ (default: `nil` )
192+
193+
194+ Certificate *Certificate*
195+
196+ Fields: ~
197+ {set_certificate_crt} (string)
198+ {set_certificate_key} (string)
193199
194200
195201RestStatisticsStyle *RestStatisticsStyle*
You can’t perform that action at this time.
0 commit comments