Releases: http-server-rs/http-server
Releases · http-server-rs/http-server
v0.3.1
- Fixes * Fix binary crate name, replace "main" with "http-server" Related Issue: (https://github.com/EstebanBorai/http-server/issues/11)
v0.3.0
- Features * A `Middleware` is implemented bringing the capabilities to act on `hyper::Request<Body>` before executing the main handler (a.k.a File Explorer) and to act on the `hyper::Response<Body>` after executing the main handler. This helps implementing future features which relies on acting on different stages of the HTTP/S request lifecycle such as logging, authentication, caching and so on. * Support for Cross-Origin Resource Sharing * Using the `--cors` flag when running the HTTP Server will now provide a CORS configuration which allows requests from any origin * The server configuration file supports a fully configurable CORS field now ```toml [cors] allow_credentials = false allow_headers = ["content-type", "authorization", "content-length"] allow_methods = ["GET", "PATCH", "POST", "PUT", "DELETE"] allow_origin = "example.com" expose_headers = ["*", "authorization"] max_age = 600 request_headers = ["x-app-version"] request_method = "GET" ``` - Improvements * Codebase refactor for `server` module, introducing middleware support for services to programmatically build a server instance from the provided `Config` * Replace `full` feature flags on `tokio` and `hyper` with sepecific features, to reduce crate load on compile time. This improve build times and crate size. * Improved tests coverage by implementing tests for CLI arguments and config file parsing - Fixes * Fix issue where the `root_dir` is taken _as is_ from the CLI arguments resulting on `./` instead of the current working directory for the `FileExplorer` * Fix issue where loading config without `root_dir` defined panics and uses the current working directory as default `root_dir` as is done for CLI * Fix issue where errors returned by any internal service are not logged to stderr
v0.2.2
v0.2.2 (2021-04-22) > Requires Rust: rustc 1.49.0 (e1884a8e3 2020-12-29) Fixes - Fix issue where the root_path is taken _as is_ from the CLI arguments resulting on `./` instead of the current working directory for the `FileExplorer`
v0.2.1
v0.2.1 (2021-04-22) > Requires Rust: rustc 1.49.0 (e1884a8e3 2020-12-29) Fixes - Fix issue where `FileExplorer` entry link is not prefixed with `/` on some paths causing the link to be invalid.
v0.2.0
Support for HTTPS serving using TLS
v0.1.0
File Explorer UI Release > Requires Rust: rustc 1.49.0 (e1884a8e3 2020-12-29) Breaking Changes * Replace `-a`, `--address` with `-h` or `--host` for host address * Replace `-h` with `--help` for Help Features * Add support for loading configuration from TOML file by specifying `--config [FILE]`. An example of this file is available here [Example](https://github.com/EstebanBorai/http-server/blob/main/fixtures/config.toml) * File Explorer with rich UI Improvements * Use `hyper-rs` server for backend * Serve static files using `hyper_staticfile` * Upgrade `tokio-rs` to version 1 Fixes * Caching issue caused because HTTP response headers doesn't include `ETag`