You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,9 @@ a node-style callback. The config object must have at minimum an `http` or
30
30
|`https.sni`| See [SNI Support](#sni-support). |
31
31
|`https.handler`| Handler for HTTPS requests. If you want to share a handler with all servers, use a top-level `handler` config property instead. |
32
32
|`https.*`| Any other properties supported by [https.createServer](https://nodejs.org/dist/latest-v8.x/docs/api/https.html#https_https_createserver_options_requestlistener) can be added to the https object, except `secureProtocol` and `secureOptions` which are set to recommended values. |
33
+
|`http2`| Optional object. If present, an HTTP/2 server is started. You may start multiple HTTP/2 servers by passing an array of objects |
34
+
|`http2.allowHTTP1`| Enable [ALPN negotiation] allowing support for both HTTPS and HTTP/2 on the same socket. |
35
+
|`http2.*`| The same `https` security options are allowed, as well as any other properties supported by [http2.createSecureServer](https://nodejs.org/dist/latest-v8.x/docs/api/http2.html#http2_http2_createsecureserver_options_onrequesthandler). |
33
36
34
37
If successful, the `create-servers` callback is passed an object with the
0 commit comments