A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -0,0 +1,25 @@
|
|||
using web
|
||||
using wisp
|
||||
|
||||
const class HelloMod : WebMod // provides the content
|
||||
{
|
||||
override Void onGet ()
|
||||
{
|
||||
res.headers["Content-Type"] = "text/plain; charset=utf-8"
|
||||
res.out.print ("Goodbye, World!")
|
||||
}
|
||||
}
|
||||
|
||||
class HelloWeb
|
||||
{
|
||||
Void main ()
|
||||
{
|
||||
WispService // creates the web service
|
||||
{
|
||||
port = 8080
|
||||
root = HelloMod()
|
||||
}.start
|
||||
|
||||
while (true) {} // stay running
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue