Hello world/Web server: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(Added Rye language (ryelang.blogspot.com))
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
(3 intermediate revisions by 3 users not shown)
Line 232:
}</syntaxhighlight>
 
=={{header|BaConBASIC}}==
==={{header|BaCon}}===
Requires BaCon 4.2 or higher.
<syntaxhighlight lang="bacon">' Define HTTP constants
Line 278 ⟶ 279:
WEND</syntaxhighlight>
 
==={{header|BBC BASIC}}===
{{works with|BBC BASIC for Windows}}
This explicitly supports multiple concurrent connections.
Line 1,247 ⟶ 1,248:
<syntaxhighlight lang="mathematica">DeleteObject[listener];
Close[listener["Socket"]]</syntaxhighlight>
 
=={{header|min}}==
{{works with|min|0.37.0}}
<syntaxhighlight lang="min">{
(
{
{"text/plain; charset=utf-8" :content-type} :headers
"Goodbye, World!" :body
}
) :handler
8080 :port
} start-server</syntaxhighlight>
 
=={{header|Modula-2}}==
Line 1,469 ⟶ 1,482:
}</syntaxhighlight>
 
Using Perl's glue power, provide a suicide note
with visitor counter via netcat:
<syntaxhighlight lang="perl">while (++(our $vn)) {
open NC, "|-", qw(nc -l -p 8080 -q 1);
print NC "HTTP/1.0 200 OK\xd\xa",
"Content-type: text/plain; charset=utf-8\xdx0d\xax0a\xdx0d\xax0a",
"Goodbye, World! (hello, visitor No. $vn!)\xdx0d\xax0a";
}</syntaxhighlight>
 
Line 2,198 ⟶ 2,211:
=={{header|Wren}}==
{{libheader|SpiderWren}}
<syntaxhighlight lang="ecmascriptwren">import "web" for Routes, App
 
Routes.GET("/") {
9,482

edits