Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
729 changes: 729 additions & 0 deletions doc/api/http3.md

Large diffs are not rendered by default.

677 changes: 45 additions & 632 deletions doc/api/quic.md

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion doc/type-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,19 @@
"zlib options": "zlib.html#class-options",
"zstd options": "zlib.html#class-zstdoptions",
"HTTP/2 Headers Object": "http2.html#headers-object",
"HTTP/2 Settings Object": "http2.html#settings-object"
"HTTP/2 Settings Object": "http2.html#settings-object",
"Http3Session": "http3.html#class-http3session",
"Http3Stream": "http3.html#class-http3stream",
"Http3Settings": "http3.html#type-http3settings",
"http3.OnSessionCallback": "http3.html#callback-onsessioncallback",
"http3.OnStreamCallback": "http3.html#callback-onstreamcallback",
"http3.OnGoawayCallback": "http3.html#callback-ongoawaycallback",
"http3.OnOriginCallback": "http3.html#callback-onorigincallback",
"http3.OnSettingsCallback": "http3.html#callback-onsettingscallback",
"http3.OnHeadersCallback": "http3.html#callback-onheaderscallback",
"http3.OnInfoCallback": "http3.html#callback-oninfocallback",
"http3.OnTrailersCallback": "http3.html#callback-ontrailerscallback",
"http3.OnWantTrailersCallback": "http3.html#callback-onwanttrailerscallback",
"http3.OnResetCallback": "http3.html#callback-onresetcallback",
"http3.OnErrorCallback": "http3.html#callback-onerrorcallback"
}
20 changes: 20 additions & 0 deletions lib/http3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict';

const {
emitExperimentalWarning,
} = require('internal/util');
emitExperimentalWarning('http3');

const {
connect,
listen,
Http3Session,
Http3Stream,
} = require('internal/quic/http3');

module.exports = {
connect,
listen,
Http3Session,
Http3Stream,
};
2 changes: 2 additions & 0 deletions lib/internal/bootstrap/realm.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ const legacyWrapperList = new SafeSet([
const schemelessBlockList = new SafeSet([
'dtls',
'ffi',
'http3',
'sea',
'sqlite',
'quic',
Expand All @@ -137,6 +138,7 @@ const schemelessBlockList = new SafeSet([
const experimentalModuleList = new SafeSet([
'dtls',
'ffi',
'http3',
'quic',
'sqlite',
'stream/iter',
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ function initializeCJS() {
modules = modules.filter((i) => i !== 'node:dtls');
}
if (!getOptionValue('--experimental-quic')) {
modules = modules.filter((i) => i !== 'node:quic');
modules = modules.filter((i) => i !== 'node:quic' && i !== 'node:http3');
}
if (!getOptionValue('--experimental-ffi')) {
modules = modules.filter((i) => i !== 'node:ffi');
Expand Down
1 change: 1 addition & 0 deletions lib/internal/process/pre_execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ function setupQuic() {

const { BuiltinModule } = require('internal/bootstrap/realm');
BuiltinModule.allowRequireByUsers('quic');
BuiltinModule.allowRequireByUsers('http3');
}

function setupVfs() {
Expand Down
Loading
Loading