wsgi-echo-server
A wsgi and http echo server.
How to use
pip install wsgi-echo-server
# Running with wsgi socket
UWSGI_SOCKET=:9000 uwsgi --module wsgi_echo_server
# Running with http socket
UWSGI_HTTP_SOCKET=:9001 uwsgi --module wsgi_echo_server
# Running with wsgi and http socket
UWSGI_SOCKET=:9000 UWSGI_HTTP_SOCKET=:9001 uwsgi --module wsgi_echo_server
There is a docker image ready to use:
docker run -e "UWSGI_SOCKET=:9000" ghcr.io/buserbrasil/wsgi-echo-server
Response
{
"environment": {
"PATH_INFO": "/",
"QUERY_STRING": "",
"RAW_URI": "/",
"REMOTE_ADDR": "127.0.0.1",
"REQUEST_METHOD": "GET",
"REQUEST_URI": "/",
"SCRIPT_NAME": "",
"SERVER_NAME": "localhost",
"SERVER_PORT": "80",
"SERVER_PROTOCOL": "HTTP/1.1"
},
"host": {
"hostname": "mockedhostname"
},
"http": {
"method": "GET"
},
"request": {
"body": "",
"cookies": {},
"headers": {
"host": "localhost",
"user-agent": "werkzeug/2.2.3"
},
"query": {}
}
}
Metadata
Release files for wsgi-echo-server 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wsgi_echo_server-0.0.6.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wsgi_echo_server-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / wsgi_echo_server-0.0.6.tar.gz
| Download URL | wsgi_echo_server-0.0.6.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abc680e7686e314c5ea9bbb05058bf1824441eada89e19a0d817e315f2789563
|
|
BLAKE2b-256 checksum How to use checksums |
29f29be12b970f8249cedd6fffaf3d994ccea0e9561e0f854fa1d21f694b81fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.11.0 Linux/5.15.0-1034-azure
|
Release files / wsgi_echo_server-0.0.6-py3-none-any.whl
| Download URL | wsgi_echo_server-0.0.6-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
616102d8aee520261c11c0510754c911e8fef8fda5de78f56dbb51d1d90c0462
|
|
BLAKE2b-256 checksum How to use checksums |
10d95f6911a716245d5122cacd961122a48aeb5f46f311057ac333c3a4afe57b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.11.0 Linux/5.15.0-1034-azure
|