Hello world/Web server: Difference between revisions

Add Jsish, showing Jsi_Websrv module
(Add Jsish, showing Jsi_Websrv module)
Line 976:
 
with no errors.
 
=={{header|Jsish}}==
One wrinkle in this sample use of the Jsi_Websrv module that ships with Jsi. A request needs ''page'' and not just the port.
 
{{out}}
<pre>prompt$ jsish
# require('Jsi_Websrv');
1.01
# Jsi_Websrv('', {server:true, port:8080, pageStr:'Goodbye, World!'});
 
...other terminal...
 
prompt$ curl http://localhost:8080/page
Goodbye, World!prompt$ curl http://localhost:8080/page
Goodbye, World!</pre>
 
=={{header|Julia}}==
Anonymous user