Skip to content

whatron/simple-rust-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-rust-server

A simple HTTP/1.1 server written completely in Rust.

Table of Contents

Features

  • HTTP/1.1 server implementation in Rust.
  • Utilizes only standard Rust libraries.
  • Reads and parses essential components of incoming requests
  • Returns HTML content in response.

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/your-http-server.git
    
  2. Navigate to the project directory:

    cd server
    
  3. Build and run the project:

    cargo build
    cargo run
    

By default, the server will listen on http://127.0.0.1:8080. You can customize the configuration by modifying the appropriate settings in the code or using command-line arguments.

Visit http://127.0.0.1:8080 in your browser or use a tool like curl to interact with the server.

About

simple rust http server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published