Skip to content

blupig/echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

echo

A very lightweight web service that provides a few basic endpoints.

CircleCI Coverage Status

Endpoints

API is available at https://api.blupig.net/echo

Available endpoints:

  • GET /cache: cacheable content with increased latency (help debugging caching layer)
  • GET /cpu: performs CPU-intensive operation on server-side (requires API token)
  • GET /exit: causes server process to exit (requires API token)
  • GET /headers: returns request headers in JSON
  • GET /health: returns application health info
  • GET /ip: returns client IP (uses X-Forwarded-For if present, otherwise returns client IP)

Deploy

Pre-built binaries are available as Docker images at blupig/echo.

The server can be configured with environment variables:

  • PORT: the port server listens on (default: 8000)
  • API_TOKEN: API token for /cpu and /exit endpoints, if not set or set to empty string, all endpoints require API token are disabled.

About

A very light-weight service for testing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published