Skip to content

Httpme is a simple command line http server that serves the current directory on an available port

License

Notifications You must be signed in to change notification settings

delta9000/httpme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httpme - Quick HTTP Server

Build Status Go Report Card License: BSD 3-Clause

httpme is a simple command-line HTTP server that serves files from a specified directory.

It can automatically select an available port or use a port defined by the user.

Usage

  • -port: Specify the port to listen on (default: random available port).
  • -address: Specify the address to bind to (default: localhost).
  • -path: Specify the directory path to serve (default: current directory).
  • -tls: Enable TLS (default: false).
  • -cert: Specify the TLS certificate file (default: none).
  • -key: Specify the TLS key file (default: none).
  • -help: Display help message.
  • -version: Display version information.

Examples

  • Serve the current directory on a random free port on localhost:
httpme 
httpme -port=8080 -address=0.0.0.0 -path=/path/to/directory
  • Serve files from /path/to/directory on https://
httpme -tls -cert /path/to/cert.pem -key /path/to/key.pem -path /path/to/directory

Installing

To install httpme, use the following command:

go install github.com/delta9000/httpme/cmd/httpme@latest

License

BSD 3-Clause License

About

Httpme is a simple command line http server that serves the current directory on an available port

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages