Skip to main content

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.

Files for gohttp, version 0.3.3
Filename, size File type Python version Upload date Hashes
Filename, size gohttp-0.3.3.macosx-10.9-x86_64.tar.gz (2.1 MB) File type Source Python version None Upload date Hashes View
Filename, size gohttp-0.3.3.tar.gz (2.7 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page