Pure Python REST HTTP Server
Project description
GNUTTY
Pure Python HTTP Server
How do I use this?
So long as you have Python3.4 or higher, there are no dependencies to worry about. Gnutty uses nothing but Python
To start the example server, run
python3 ./srv/gnutty.py
From the root of the repository.
You can confirm that it is running by opening
http://127.0.0.1:8000/
in a browser and checking you
receive the plaintext response of OK
You can also run
curl -v http://127.0.0.1:8000
To confirm the response from the Gnutty Server
~ curl -v http://127.0.0.1:8000
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8000 (#0)
> GET / HTTP/1.1
> Host: 127.0.0.1:8000
> User-Agent: curl/7.64.1
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: Gnutty HTTP server 0.1
< Content-Type: text
< Content-Length: 2
<
* Closing connection 0
OK
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gnutty-0.0.1.tar.gz
(5.6 kB
view details)
File details
Details for the file gnutty-0.0.1.tar.gz
.
File metadata
- Download URL: gnutty-0.0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c08c1f802c10b188c2a8056fa665e9c56fd5f54b9b5c1e745da39424882b9469 |
|
MD5 | 23fd9407ac49eb6cafab0ce39a8db147 |
|
BLAKE2b-256 | 0113dc532e3c88dfd1a39129a343d5af879475211bebb54b305a671d88f39893 |