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 Distributions
gohttp-0.3.3.tar.gz
(2.7 MB
view details)
File details
Details for the file gohttp-0.3.3.tar.gz
.
File metadata
- Download URL: gohttp-0.3.3.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fda1c8499ac24e46ab33e85b5d7ca4d60e17cce63873a2f12d49fed20a66b0fb |
|
MD5 | ab35d7334b2a5708f102885bbfe2cd87 |
|
BLAKE2b-256 | 6d576e38950278d53fd94742b0f111978e989bfe343b6d58036381b161079b76 |
File details
Details for the file gohttp-0.3.3.macosx-10.9-x86_64.tar.gz
.
File metadata
- Download URL: gohttp-0.3.3.macosx-10.9-x86_64.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6a4ed8f6e15c881b11859f8a0806ce0d143c785c9f052745f9ae8b248a1c409 |
|
MD5 | a290266d3dc15f16085c958541cb5a2a |
|
BLAKE2b-256 | 2f19e428415fe67bc2e1886f2832499598b5d2a4de789ed9ea4c5dc3cb697f4b |