Skip to main content

Web-server which produces infinite chunked-encoded responses

Project description

http-tarpit

Web-server which produces infinite chunked-encoded responses

Requirements

  • Python 3.5.3+
  • aiohttp 3.4.4+

Installation

Standard Python package installation. This package is available on PyPI:

pip3 install http-tarpit

Usage

Synopsis:

$ http-tarpit --help
usage: http-tarpit [-h] [--disable-uvloop] [-v {debug,info,warn,error,fatal}]
                   [-m {clock,newline,urandom,null,slow_newline}]
                   [-a BIND_ADDRESS] [-p BIND_PORT] [-c CERT] [-k KEY]

Web-server which produces infinite chunked-encoded responses

optional arguments:
  -h, --help            show this help message and exit
  --disable-uvloop      do not use uvloop even if it is available (default:
                        False)
  -v {debug,info,warn,error,fatal}, --verbosity {debug,info,warn,error,fatal}
                        logging verbosity (default: info)
  -m {clock,newline,urandom,null,slow_newline}, --mode {clock,newline,urandom,null,slow_newline}
                        operation mode (default: clock)

listen options:
  -a BIND_ADDRESS, --bind-address BIND_ADDRESS
                        bind address (default: 0.0.0.0)
  -p BIND_PORT, --bind-port BIND_PORT
                        bind port (default: 8080)

TLS options:
  -c CERT, --cert CERT  enable TLS and use certificate (default: None)
  -k KEY, --key KEY     key for TLS certificate (default: None)

Modes of operation

  • clock - feed client with current time string every second
  • newline - feed client with newlines as fast as possible
  • urandom - feed client with random bytes as fast as possible
  • null - feed client with zero bytes as fast as possible
  • slow_newline - feed client with newline character every second

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 http-tarpit, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size http_tarpit-0.1.1-py3-none-any.whl (7.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size http_tarpit-0.1.1.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page