From 1a25f9639a9668d8ea90022b0f3d3b47d29971b6 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 26 Aug 2018 19:02:27 +0300 Subject: doc: remove redundant 'Example:' and similar notes Some nits were also fixed in passing. PR-URL: https://github.com/nodejs/node/pull/22537 Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Sakthipriyan Vairamani Reviewed-By: James M Snell --- doc/api/https.md | 8 -------- 1 file changed, 8 deletions(-) (limited to 'doc/api/https.md') diff --git a/doc/api/https.md b/doc/api/https.md index ce6da9ae81..3f3dc54b44 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -76,8 +76,6 @@ added: v0.3.4 [`tls.createSecureContext()`][] and [`http.createServer()`][]. * `requestListener` {Function} A listener to be added to the `'request'` event. -Example: - ```js // curl -k https://localhost:8000/ const https = require('https'); @@ -134,8 +132,6 @@ Like [`http.get()`][] but for HTTPS. string, it is automatically parsed with [`new URL()`][]. If it is a [`URL`][] object, it will be automatically converted to an ordinary `options` object. -Example: - ```js const https = require('https'); @@ -193,8 +189,6 @@ The following additional `options` from [`tls.connect()`][] are also accepted: string, it is automatically parsed with [`new URL()`][]. If it is a [`URL`][] object, it will be automatically converted to an ordinary `options` object. -Example: - ```js const https = require('https'); @@ -239,8 +233,6 @@ const req = https.request(options, (res) => { Alternatively, opt out of connection pooling by not using an [`Agent`][]. -Example: - ```js const options = { hostname: 'encrypted.google.com', -- cgit v1.2.3