dummyserver

command module
v0.0.0-...-7cc8698 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 7 Imported by: 0

README

dummyserver

A dummy HTTP server that accepts all requests sent to it

Running

From the project directory, run the program with

go run main.go

By default, the server listens on port 9090. To change this, set the -port flag e.g.:

go run main.go -port=8989

Run with the -help flag to see more options.

Send a request to the dummyserver e.g.

curl localhost:9090 --json '{ "message": "Hello World" }'

Installing

You can install the executable with

go install

and then run it with the command dummyserver.

Help

To get more information on the executable, run it with the -help flag:

dummyserver -help

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