Link Search Menu Expand Document

HW 3: Rust HTTP Server

The Hypertext Transport Protocol (HTTP) is the most commonly used application protocol on the Internet today. Like many network protocols, HTTP uses a client-server model. An HTTP client opens a network connection to an HTTP server and sends an HTTP request message. Then, the server replies with an HTTP response message, which usually contains some resource (e.g. file, text, binary data) that was requested by the client.

In this assignment, you will familiarize yourself with the popular systems programming language Rust by implementing an HTTP server that handles HTTP GET requests. You will provide functionality through the use of HTTP response headers, add support for HTTP error codes, and create directory listings with HTML. The request and response headers should comply with the HTTP 1.0 protocol found here.


Getting started

Log into your VM and pull the skeleton code from the staff repository:

cd ~/code/personal
git pull staff master
cd hw-http-rs