httpstatuscodes

command module
v0.0.0-...-4ba86d0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: MIT Imports: 5 Imported by: 0

README

httpstatuscodes

httpstatuscodes is a simple HTTP server. It returns empty response with any HTTP status codes defined on https://httpstatuses.com/.

How To Use

On Local Machine
go build .
./httpstatuscodes

# On another terminal window
curl -i localhost:9696/500
HTTP/1.1 504 Gateway Timeout
Date: Mon, 29 Jun 2020 20:26:48 GMT
Content-Length: 0
On Kubernetes
# Create Deployment and Service
kubectl apply -f deployment.yaml

# Create Ingress Controller
kubectl apply -f ingress.yaml

# Request with status code
curl -H "host: statuscodes.info" 10.100.100.100/200

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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