# thewawar/simple-http-server

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/thewawar-simple-http-server).**

3,394 stars · 218 forks · Rust · mit

## Links

- GitHub: https://github.com/TheWaWaR/simple-http-server
- awesome-repositories: https://awesome-repositories.com/repository/thewawar-simple-http-server.md

## Topics

`file` `http` `rust` `server` `simplehttpserver` `static`

## Description

This project is a collection of specialized HTTP servers designed for static file hosting, secure file uploads, and encrypted web traffic. It provides implementations for delivering local files and directories over HTTP and HTTPS, including support for index pages and single-page application routing.

The software differentiates itself through dedicated server roles, including a secure file upload server with size limits and token validation, and an HTTPS web server that utilizes PKCS#12 certificates for TLS encryption. It also includes a specialized gateway for managing cross-origin resource sharing and browser caching policies.

Additional capabilities cover access control via HTTP Basic Authentication, content compression using gzip, and the handling of byte-range requests and ETag-based cache validation. The system also manages request routing through path normalization and custom HTTP header configuration.

## Tags

### Web Development

- [Static File Servers](https://awesome-repositories.com/f/web-development/static-file-servers.md) — Provides a lightweight static file server for hosting local files and directories over HTTP. ([source](https://github.com/TheWaWaR/simple-http-server#readme))
- [HTTPS Servers](https://awesome-repositories.com/f/web-development/web-servers/https-servers.md) — Provides a dedicated HTTPS web server that uses PKCS#12 certificates for secure traffic encryption.
- [CORS Policies](https://awesome-repositories.com/f/web-development/cors-policies.md) — Provides a specialized gateway for managing CORS policies and browser caching.
- [HTTP Content Compression](https://awesome-repositories.com/f/web-development/http-content-compression.md) — Reduces network payload size by compressing responses using gzip before transmission. ([source](https://github.com/TheWaWaR/simple-http-server#readme))
- [Path Normalization](https://awesome-repositories.com/f/web-development/path-normalization.md) — Implements path normalization to map incoming HTTP requests correctly to host directories.
- [Response Compression](https://awesome-repositories.com/f/web-development/response-compression.md) — Reduces network payload size through gzip-based response compression.
- [Single Page Application Hosting](https://awesome-repositories.com/f/web-development/web-infrastructure-deployment/web-infrastructure-servers/http-servers/single-page-application-hosting.md) — Supports single-page application hosting via fallback routing to a single HTML file. ([source](https://github.com/TheWaWaR/simple-http-server/blob/master/README.md))
- [SPA Routing Support](https://awesome-repositories.com/f/web-development/web-infrastructure-deployment/web-infrastructure-servers/static-html-serving/spa-routing-support.md) — Includes fallback routing support that redirects missing paths to an index file for single-page applications.

### Networking & Communication

- [HTTP File Uploads](https://awesome-repositories.com/f/networking-communication/http-file-uploads.md) — Implements an HTTP file upload server with configurable size limits and security tokens.
- [TLS Termination](https://awesome-repositories.com/f/networking-communication/service-meshes/tls-termination.md) — Handles TLS termination using PKCS#12 certificates to establish secure HTTPS connections.
- [HTTP Range Request Handlers](https://awesome-repositories.com/f/networking-communication/byte-range-requesting/http-range-request-handlers.md) — Implements HTTP range request handlers to optimize bandwidth by delivering partial file content.
- [ETag Generators](https://awesome-repositories.com/f/networking-communication/request-header-configuration/etag-generators.md) — Provides ETag generation to enable conditional requests and browser cache validation.

### Security & Cryptography

- [File Upload Security](https://awesome-repositories.com/f/security-cryptography/file-upload-security.md) — Provides secure file upload handling with token validation and streamed storage. ([source](https://github.com/TheWaWaR/simple-http-server/blob/master/ANALYSIS.md))
- [Upload Request Validation](https://awesome-repositories.com/f/security-cryptography/file-upload-security/upload-request-validation.md) — Implements a secure upload server with file size limits and request token validation.
- [TLS Certificate Management](https://awesome-repositories.com/f/security-cryptography/tls-certificate-management.md) — Secures network traffic using PKCS#12 certificates to establish encrypted HTTPS connections. ([source](https://github.com/TheWaWaR/simple-http-server/blob/master/README.md))
- [Traffic Encryption](https://awesome-repositories.com/f/security-cryptography/traffic-encryption.md) — Encrypts network traffic using PKCS#12 certificates to ensure secure data transmission.
- [Basic Authentication](https://awesome-repositories.com/f/security-cryptography/basic-authentication.md) — Restricts access to hosted files and directories using standard HTTP Basic Authentication.
- [Cache Control Headers](https://awesome-repositories.com/f/security-cryptography/http-security-headers/cache-control-headers.md) — Manages custom HTTP headers for CORS policies and browser cache-control.
- [CORS Policy Configurations](https://awesome-repositories.com/f/security-cryptography/network-infrastructure-security/web-network-security/web-security-policies/cors-policy-configurations.md) — Manages cross-origin resource sharing permissions and handles browser preflight requests. ([source](https://github.com/TheWaWaR/simple-http-server/blob/master/ANALYSIS.md))
- [Request Authentication Middleware](https://awesome-repositories.com/f/security-cryptography/request-authentication-middleware.md) — Utilizes authentication middleware to validate credentials and security tokens before filesystem access.

### Data & Databases

- [HTTP Request Body Streaming](https://awesome-repositories.com/f/data-databases/database-clients/client-to-cluster-data-uploaders/streaming-data-uploaders/http-request-body-streaming.md) — Uses stream-based uploads to handle large files without consuming excessive system memory.

### Part of an Awesome List

- [Web Services](https://awesome-repositories.com/f/awesome-lists/more/web-services.md) — Simple static HTTP server.
