ravikumar10 / genyris

Automatically exported from code.google.com/p/genyris
Other
0 stars 0 forks source link

Allow httpd to accept closures so that multiple servers can be launched from code. #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Example:
# define a server closure, maybe this should be an object?
df blocker-server (request)
   list 200 "text/html"
      template
          html()
             head()
                title() "Blocker"
             body()
                div()
                   'Blocked '

# now launch multiple servers.
httpd 80 blocker-server
httpd 15871 blocker-server

Original issue reported on code.google.com by birchb1...@gmail.com on 19 Jul 2011 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by birchb1...@gmail.com on 24 Nov 2011 at 11:26