[njs] Types: updated TS definitions.

Dmitry Volyntsev xeioex at nginx.com
Fri Oct 8 13:42:04 UTC 2021


details:   https://hg.nginx.org/njs/rev/9291aef80a73
branches:  
changeset: 1715:9291aef80a73
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Fri Oct 08 13:40:58 2021 +0000
description:
Types: updated TS definitions.

diffstat:

 ts/ngx_core.d.ts |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r b5d102eb81c1 -r 9291aef80a73 ts/ngx_core.d.ts
--- a/ts/ngx_core.d.ts	Fri Oct 08 12:32:42 2021 +0300
+++ b/ts/ngx_core.d.ts	Fri Oct 08 13:40:58 2021 +0000
@@ -95,6 +95,12 @@ interface NgxFetchOptions {
      * Request method, by default the GET method is used.
      */
     method?: NjsStringLike;
+    /**
+     * Enables or disables verification of the HTTPS server certificate,
+     * by default is true.
+     * @since 0.7.0
+     */
+    verify?: boolean;
 }
 
 interface NgxObject {
@@ -111,7 +117,7 @@ interface NgxObject {
     /**
      * Makes a request to fetch an URL.
      * Returns a Promise that resolves with the NgxResponse object.
-     * Only the http:// scheme is supported, redirects are not handled.
+     * Since 0.7.0 HTTPS is supported, redirects are not handled.
      * @param url URL of a resource to fetch.
      * @param options An object containing additional settings.
      * @since 0.5.1


More information about the nginx-devel mailing list