mirror of
https://github.com/nodejs/node.git
synced 2026-12-03 18:03:02 -05:00
doc: add new documentation lint rule
Add 80 characters limit to docs. Change docs to fit 80 characters per row. PR-URL: https://github.com/nodejs/node/pull/18726 Fixes: https://github.com/nodejs/node/issues/18703 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
This commit is contained in:
1 parent
3a19122941
commit
a29089d7c8
56 files changed
+350
-251
No files matched your search
+6
-5
@@ -12,8 +12,8 @@ separate module.
|
||||
added: v0.4.5
|
||||
-->
|
||||
|
||||
An [`Agent`][] object for HTTPS similar to [`http.Agent`][]. See [`https.request()`][]
|
||||
for more information.
|
||||
An [`Agent`][] object for HTTPS similar to [`http.Agent`][]. See
|
||||
[`https.request()`][] for more information.
|
||||
|
||||
## Class: https.Server
|
||||
<!-- YAML
|
||||
@@ -158,8 +158,8 @@ changes:
|
||||
pr-url: https://github.com/nodejs/node/pull/10638
|
||||
description: The `options` parameter can be a WHATWG `URL` object.
|
||||
-->
|
||||
- `options` {Object | string | URL} Accepts all `options` from [`http.request()`][],
|
||||
with some differences in default values:
|
||||
- `options` {Object | string | URL} Accepts all `options` from
|
||||
[`http.request()`][], with some differences in default values:
|
||||
- `protocol` Defaults to `https:`
|
||||
- `port` Defaults to `443`.
|
||||
- `agent` Defaults to `https.globalAgent`.
|
||||
@@ -251,7 +251,8 @@ const req = https.request(options, (res) => {
|
||||
});
|
||||
```
|
||||
|
||||
Example pinning on certificate fingerprint, or the public key (similar to `pin-sha256`):
|
||||
Example pinning on certificate fingerprint, or the public key (similar to
|
||||
`pin-sha256`):
|
||||
|
||||
```js
|
||||
const tls = require('tls');
|
||||
|
||||
Reference in new issue
Block a user