Arkyo
Arkyo is a simple HTTP server written in Rust, designed to handle incoming requests and provide appropriate responses based on defined routes and static file serving capabilities.
Features
- HTTP Server: Arkyo listens for incoming TCP connections, parses HTTP requests, and dispatches them to corresponding handlers.
- Routing: Define routes with specific HTTP methods and corresponding handler functions.
- Static File Serving: Serve static files from a specified folder.
- Error Handling: Handle errors gracefully with appropriate HTTP status codes.
- Multi-threaded: Arkyo is built to handle multiple incoming connections concurrently using multi-threading.
Roadmap
- Static Content
- Dynamic Routes
- Multiform Support
Usage
- Define Routes: Add routes to the server instance using the
add_routemethod.
server.add_route;
- Set Static Folder: Optionally, set a folder from which to serve static files using
static_foldermethod.
server.static_folder;
- Start Server: Begin listening for incoming connections using
listenmethod.
server.listen;
Example
use ;
Installation
Add arkyo to your Cargo.toml dependencies:
[]
= "0.0.1"
Contributing
- Found a bug? Please open an issue.
- Want to contribute? Fork the repository and submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Arkyo - © 2024 DhavyLTS