Skip to content

Commit c64fcb2

Browse files
authored
feat!: remove spdy support (#114)
1 parent a803a7b commit c64fcb2

9 files changed

Lines changed: 3 additions & 486 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
"selfsigned": "^2.4.1",
111111
"serve-index": "^1.9.2",
112112
"sockjs": "^0.3.24",
113-
"spdy": "^4.0.2",
114113
"webpack-dev-middleware": "^7.4.5",
115114
"ws": "^8.19.0"
116115
},

pnpm-lock.yaml

Lines changed: 0 additions & 135 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/server.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -893,18 +893,7 @@ class Server<
893893

894894
const serverOptions = options.server.options as ServerOptions;
895895

896-
if (
897-
options.server.type === 'spdy' &&
898-
typeof serverOptions.spdy === 'undefined'
899-
) {
900-
serverOptions.spdy = { protocols: ['h2', 'http/1.1'] };
901-
}
902-
903-
if (
904-
options.server.type === 'https' ||
905-
options.server.type === 'http2' ||
906-
options.server.type === 'spdy'
907-
) {
896+
if (options.server.type === 'https' || options.server.type === 'http2') {
908897
if (typeof serverOptions.requestCert === 'undefined') {
909898
serverOptions.requestCert = false;
910899
}

src/types.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,7 @@ export type HandleFunction =
6464
| NextHandleFunction
6565
| ErrorHandleFunction;
6666

67-
export type ServerOptions = import('https').ServerOptions & {
68-
spdy?: {
69-
plain?: boolean;
70-
ssl?: boolean;
71-
'x-forwarded-for'?: string;
72-
protocol?: string;
73-
protocols?: string[];
74-
};
75-
};
67+
export type ServerOptions = import('https').ServerOptions;
7668

7769
// type-level helpers, inferred as util types
7870
export type Request<T extends BasicApplication = ExpressApplication> =
@@ -129,7 +121,6 @@ export type ServerType<
129121
> =
130122
| 'http'
131123
| 'https'
132-
| 'spdy'
133124
| 'http2'
134125
| string
135126
| ((serverOptions: ServerOptions, application: A) => S);

0 commit comments

Comments
 (0)