Skip to content

Commit c5191d2

Browse files
save file
1 parent 0889138 commit c5191d2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# override createserver
2+
3+
this code snippet demonstrates overriding createServer function of nodejs http modules to add additional functionailty.
4+
It came about from trying to create a demo in webcontainers which was really beyond the capacity of webcontainers, so override
5+
createserver was used to hook into the request received function and respond to /setup url before it ever reached the
6+
server in question.
7+
8+
9+

0 commit comments

Comments
 (0)