basic-http-server icon indicating copy to clipboard operation
basic-http-server copied to clipboard

A simple static HTTP server in Rust, for learning and local doc development

Results 21 basic-http-server issues
Sort by recently updated
recently updated
newest added

This PR adds an option to redirect all file misses to the path '/index.html'. This is useful for single-page apps where the routing is done client-side. I'm raising this as...

Some other small(-ish) dev servers like [live-server](https://github.com/tapio/live-server) support watching served files and automatically reloading any connected browsers. This is super handy for development! It could also serve as a good...

This removes ~60 lines of boilerplate.

Also pass config object around so it's easier to access config settings.

Also give good error message when address is in use. I've reopened this PR. If you want to test it before merging ``` git remote add derekdreery https://github.com/derekdreery/basic-http-server git fetch...

Example page: https://github.com/rust-lang/rustup.rs#working-with-nightly-rust Anchors don't work in basic-http-server. Naming is wrong.

(these two are actix-web based, http-server-rs has been updated recently to latest) - [http-server-rs](https://github.com/gdamjan/http-server-rs) - [simple-webserver](https://github.com/foundpatterns/simple-webserver) ([a torchbear app](https://github.com/topics/torchbear))

At the moment it seems that on every request, a file is loaded from disk. Can this be cached?

Bumps [net2](https://github.com/deprecrated/net2-rs) from 0.2.33 to 0.2.38. Commits 2c0abd4 Release v0.2.38 eb44275 Remove special casing for Redox as it is supported by unix target family a183475 Release v0.2.37 6081dff haiku: Fix...

dependencies

Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.2.0-alpha.6 to 1.18.5. Release notes Sourced from tokio's releases. Tokio v1.18.3 1.18.3 (September 27, 2022) This release removes the dependency on the once_cell crate to restore the...

dependencies