webrandom

command module
v0.0.0-...-922128d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 6 Imported by: 0

README

Build Status

Webrandom

Webrandom provides HTTP services analogous to /dev/null, /dev/random and /dev/zero.

This program is mostly useful as a dummy web server to measure performance of HTTP clients and proxies.

Usage

$ webrandom [ -http localhost:8080 ]

The following requests are supported:

  • POST /null
  • GET /random/<size in bytes>
  • GET /zero/<size in bytes>

Examples

Upload a file:

$ curl -X POST -d @rand http://localhost/null

Download a 1 GB file of random data:

$ curl -o rand http://localhost/random/1048576

Download a 1 GB file of zero data:

$ curl -o zero http://localhost/zero/1048576

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL