Bindings for gohttplib, exposing Go's http.Server
Project description
gohttp: Bindings for gohttplib
==============================
*Warning*: This library currently ships with a shared object of gohttplib
compiled for OSX. It will not work on other platforms at the moment.
See `https://github.com/shazow/gohttplib`_ for details.
Usage
-----
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)
License
-------
MIT.
==============================
*Warning*: This library currently ships with a shared object of gohttplib
compiled for OSX. It will not work on other platforms at the moment.
See `https://github.com/shazow/gohttplib`_ for details.
Usage
-----
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)
License
-------
MIT.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
gohttp-0.2.tar.gz
(2.2 MB
view hashes)
Close
Hashes for gohttp-0.2.macosx-10.9-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b171b5635dcfd4529586fabddc35297ae6a5f60fbfa39131454fa09f7f0c9f3 |
|
MD5 | 020a1680df4f9577b51198da222a193d |
|
BLAKE2b-256 | 54f631767518fd337f81dec3cba3ff42f81c73a027e4051b5de78667b14661a3 |