Bindings for gohttplib, exposing Go's http.Server
Project description
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 Distribution
gohttp-0.3.1.tar.gz
(2.7 MB
view details)
File details
Details for the file gohttp-0.3.1.tar.gz
.
File metadata
- Download URL: gohttp-0.3.1.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ccb1c5d484a26a897ab143c2d2aec65c4548aaa6e7c1c670d5b5560749eb819 |
|
MD5 | 27d5f66d497ecc68122ecfc5a2da6622 |
|
BLAKE2b-256 | 61ac66024d38a34dd7ed9b5289a2f7e5183b36ecadcf0f494cf26a7cbee8e971 |