Skip to content

Instantly share code, notes, and snippets.

@enigmaticape
Created November 8, 2012 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enigmaticape/4041041 to your computer and use it in GitHub Desktop.
Save enigmaticape/4041041 to your computer and use it in GitHub Desktop.
Teeny tiny webpy
import web
urls = (
'/', 'index'
)
class index:
def GET (self):
return "Post some data!"
def POST (self):
print web.data() +"\n"
return "You Sent : \n\"" + web.data() + "\"\n"
if __name__ == "__main__":
app = web.application(urls, globals())
app.run()
@enigmaticape
Copy link
Author

Example code from a post discussing web servers at Enigmatic Ape blog http://www.enigmaticape.com/blog/a-minimalish-objective-c-http-server/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment