Loading...

Build your own HTTP server

Learn about TCP servers, the HTTP protocol and more

This challenge is free to try when it's in beta. We keep challenges in beta for a few weeks to gather feedback.

In this challenge, you'll build a toy HTTP server that's capable of handling GET/POST requests. Along the way, we'll learn about TCP connections, HTTP headers, HTTP verbs, handling multiple connections and more.

Stages

Bind to a port

In this stage, you'll build a TCP server that listens on port 4221.

Very easy
We'd expect a proficient developer to take < 5 minutes to complete this stage.
Respond with 200

In this stage, you'll extend your TCP server to respond to a HTTP request with a 200 response.

Very easy
We'd expect a proficient developer to take < 5 minutes to complete this stage.
show all...