Skip to content

fiction.respond

Sends an HTTP response.

Terminal window
fiction.respond "<HTTP code>" "<body?>"

If no body as argument is provided, fiction.respond will read from standard input:

Terminal window
fiction.respond 200 << EOF
foo
bar
baz
EOF