We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7144862 commit 1e11264Copy full SHA for 1e11264
core.sh
@@ -410,7 +410,7 @@ writeHttpResponse() {
410
output &
411
PID=$!
412
413
- on_open 1>&2
+ [[ $(type -t on_open) == function ]] && on_open 1>&2
414
415
while IFS= read -r line; do
416
:
@@ -420,7 +420,7 @@ writeHttpResponse() {
420
wait $PID 2>/dev/null
421
422
unsubscribe "$SUB_FD"
423
- on_close 1>&2
+ [[ $(type -t on_close) == function ]] && on_close 1>&2
424
425
return
426
elif [[ "$directive_test" == "# headers" ]]; then
@@ -534,6 +534,8 @@ export -f subscribe
534
export -f unsubscribe
535
export -f publish
536
export -f event
537
+export -f header
538
+export -f end_headers
539
export -f htmx_page
540
export -f findPredefinedRoutes
541
export -f findDynamicRoutes
0 commit comments