No project description provided
Project description
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": {}
}
}
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
wsgi_echo_server-0.0.6.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for wsgi_echo_server-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 616102d8aee520261c11c0510754c911e8fef8fda5de78f56dbb51d1d90c0462 |
|
MD5 | 119637e61668dce6f9a8579e5f35a6f8 |
|
BLAKE2b-256 | 10d95f6911a716245d5122cacd961122a48aeb5f46f311057ac333c3a4afe57b |