Skip to content

Instantly share code, notes, and snippets.

@mwja
Last active February 22, 2017 17:12
Show Gist options
  • Save mwja/cd02e40c72f033022891236937f9c9f1 to your computer and use it in GitHub Desktop.
Save mwja/cd02e40c72f033022891236937f9c9f1 to your computer and use it in GitHub Desktop.
project of tie (using the final stated design) - just a web server app.
include("WebKit")
include("FileKit")
server: object = WebKit::establish("0.0.0.0", ~)
server.request: func = string | context : set |
if(context["path"].ends("/"))
context["path"] += "index.html"
FileKit::read(context["path"])
server.start()
include("WebKit")
include("FileKit")
server: object = WebKit::establish("0.0.0.0", ~)
server.request: func = string | context : set | do
if(context["path"].ends("/")) do
context["path"] += "index.html"
end
FileKit::read(context["path"])
end
server.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment