gohttplib的绑定,公开go的http.server
gohttp的Python项目详细描述
warning:此库当前附带gohttplib的共享对象 为OSX编译。它目前不会在其他平台上工作。
有关详细信息,请参见https://github.com/shazow/gohttplib。
用法
from gohttp import route, run @route('/') def index(w, req): w.write("%s %s %s\n" % (req.method, req.host, req.url)) w.write("Hello, world.\n") run(host='127.0.0.1', port=5000)
许可证
麻省理工学院。