]> git.kaiwu.me - njs.git/commitdiff
Types: updated TS definitions.
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 8 Oct 2021 13:40:58 +0000 (13:40 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Fri, 8 Oct 2021 13:40:58 +0000 (13:40 +0000)
ts/ngx_core.d.ts

index 4a02f149f44eca768a54f31e0e4710eec535fac5..4010eed3daa180c63b072d3019172db45a4f7a6f 100644 (file)
@@ -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