httest

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 8 Imported by: 0

README

httest

A dead-simple HTTP/HTTPS test server for developers.

Installation

Get the binaries from the GitHub releases or use the container images at ghcr.io/xrstf/httest.

Usage

Usage of httest:
  -e, --echo                    Respond to the client with the received request.
  -l, --listen string           Hostname and port to listen on. (default "localhost:8080")
      --pki-directory string    Directory where CA and serving certificate should be created in. (default ".httest")
  -r, --response string         Send the contents of this file as the response.
      --server-name string      Unique server name to include in responses.
      --tls                     Use TLS with a self-signed certificate.
  -n, --tls-hostnames strings   Comma-separated list of domain names to include in the serving certificate. (default [localhost,127.0.0.1])
  -t, --trace                   Log full request bodies on stderr.
  -V, --version                 Show version info and exit immediately.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
pki

Jump to

Keyboard shortcuts

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