Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .github/bench/target.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function buildOptimizedPayload(label) {
function buildDynamicApp(createApp, label) {
const app = createApp();

/** [Auto generated by http-native]
* [http-native optimization] bridge-dispatch
* This route currently runs through bridge dispatch because it depends on runtime request data.
*/
app.get("/users/:id", async (req, res) => {
res.json({
id: req.params.id,
Expand All @@ -44,10 +48,6 @@ function buildStaticApp(createApp, label) {
const app = createApp();

if (label === "http-native") {
/** [Auto generated by http-native]
* [http-native optimization] static-fast-path
* This route is served by the static fast path and avoids generic bridge dispatch.
*/
app.get("/", (req, res) => {
res.json({
ok: true,
Expand Down
1 change: 1 addition & 0 deletions .github/tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ async function main() {
serverConfig: {
...httpServerConfig,
maxHeaderBytes: httpServerConfig.maxHeaderBytes,
tls: null,
},
});
let closed = false;
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ examples/
plan/
plans/
http-native.wiki/

PLAN.md
boost.md
dx.md
Loading
Loading