Skip to main content

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


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 details)

Uploaded Source

Built Distribution

wsgi_echo_server-0.0.6-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file wsgi_echo_server-0.0.6.tar.gz.

File metadata

  • Download URL: wsgi_echo_server-0.0.6.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.0 Linux/5.15.0-1034-azure

File hashes

Hashes for wsgi_echo_server-0.0.6.tar.gz
Algorithm Hash digest
SHA256 abc680e7686e314c5ea9bbb05058bf1824441eada89e19a0d817e315f2789563
MD5 5ce207d4b457e475c45e1e73c536f224
BLAKE2b-256 29f29be12b970f8249cedd6fffaf3d994ccea0e9561e0f854fa1d21f694b81fc

See more details on using hashes here.

File details

Details for the file wsgi_echo_server-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: wsgi_echo_server-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.0 Linux/5.15.0-1034-azure

File hashes

Hashes for wsgi_echo_server-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 616102d8aee520261c11c0510754c911e8fef8fda5de78f56dbb51d1d90c0462
MD5 119637e61668dce6f9a8579e5f35a6f8
BLAKE2b-256 10d95f6911a716245d5122cacd961122a48aeb5f46f311057ac333c3a4afe57b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page