maruel / Serve Dir
Licence: apache-2.0
"python -m SimpleHTTPServer" but FAST
Stars: ✭ 49
Programming Languages
go
31211 projects - #10 most used programming language
Labels
Projects that are alternatives of or similar to Serve Dir
Caddy
Matthew Holt began developing Caddy in 2014 while studying computer science at Brigham Young University. (The name "Caddy" was chosen because this software helps with the tedious, mundane tasks of serving the Web, and is also a single place for multiple things to be organized together.) It soon became the first web server to use HTTPS automatically and by default, and now has hundreds of contributors and has served trillions of HTTPS requests.
Stars: ✭ 35,966 (+73300%)
Mutual labels: http-server
Nodemcu Espress
Ultra-Lightweight and modular Node.js express like http server for NodeMCU. web - ESP8266
Stars: ✭ 39 (-20.41%)
Mutual labels: http-server
Fortjs
Component based MVC web framework for nodejs targeting good code structures & modularity.
Stars: ✭ 44 (-10.2%)
Mutual labels: http-server
Liberator
An Elixir library for building RESTful applications.
Stars: ✭ 28 (-42.86%)
Mutual labels: http-server
Fastdeploy
Deploy DL/ ML inference pipelines with minimal extra code.
Stars: ✭ 35 (-28.57%)
Mutual labels: http-server
Updog
Updog is a replacement for Python's SimpleHTTPServer. It allows uploading and downloading via HTTP/S, can set ad hoc SSL certificates and use http basic auth.
Stars: ✭ 994 (+1928.57%)
Mutual labels: http-server
Markdownshare
The code behind https://markdownshare.com/
Stars: ✭ 15 (-69.39%)
Mutual labels: http-server
Xxm
Combine Delphi and HTML code in the same source files to compile a website into a library that runs on IIS, Apache httpd, CGI, SCGI, on http.sys or raw no-frills HTTP...
Stars: ✭ 47 (-4.08%)
Mutual labels: http-server
Http File Server
tiny portable HTTP file server. single binary, no dependencies. linux, osx, windows. #golang
Stars: ✭ 37 (-24.49%)
Mutual labels: http-server
Esper
📻 Event Source powered by hyper written in Rust
Stars: ✭ 43 (-12.24%)
Mutual labels: http-server
Fht2p
A cross-platform HTTP static file server developed using Rust.
Stars: ✭ 28 (-42.86%)
Mutual labels: http-server
Gunicorn
gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications.
Stars: ✭ 8,001 (+16228.57%)
Mutual labels: http-server
Embedio
A tiny, cross-platform, module based web server for .NET
Stars: ✭ 1,007 (+1955.1%)
Mutual labels: http-server
Go Bootstrap
Easy way to bootstrap a web server in Go (Routing|Middleware|Https)
Stars: ✭ 27 (-44.9%)
Mutual labels: http-server
Jiny
Lightweight, modern, simple JVM web framework for rapid development in the API era
Stars: ✭ 40 (-18.37%)
Mutual labels: http-server
Generator Http Fake Backend
Yeoman generator for building a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 49 (+0%)
Mutual labels: http-server
Unipi
Serving content from a git repository via HTTPS (including let's encrypt provisioning) as MirageOS unikernel
Stars: ✭ 46 (-6.12%)
Mutual labels: http-server
Nico
A HTTP2 web server for reverse proxy and single page application, automatically apply for ssl certificate, Zero-Configuration.
Stars: ✭ 43 (-12.24%)
Mutual labels: http-server
Serves a directory over HTTP
I was extremely annoyed at python -m SimpleHTTPServer (lack of) speed so I wrote one.
This project depends only on stdlib on purpose.
Installation
go get github.com/maruel/serve-dir
Usage
Serve the current directory:
serve-dir
Help with the command line arguments available:
serve-dir -help
Example output
11:15:52.282045 Serving /home/my_account/src on port 8010
11:15:53.916813 192.168.1.2:2092 - 304 0b GET /src/
11:15:54.010258 192.168.1.2:2092 - 404 19b GET /favicon.ico
11:16:08.770496 192.168.1.2:2094 - 200 8877b GET /src/foo.json
Logging library
The http.Handler logging code in
serve-dir
is usable as a library as github.com/maruel/serve-dir/loghttp
via
loghttp.Handler.
Example:
// Serves the current directory over HTTP and logs all requests.
log.SetFlags(log.Lmicroseconds)
s := &http.Server{
Addr: ":6060",
Handler: &loghttp.Handler{Handler: http.FileServer(http.Dir("."))},
}
log.Fatal(s.ListenAndServe())
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].