Basic HTTP Server

Medium
3 views 25 Jan 2026
Create an HTTP server that returns 'Hello meetcode'....

Parse URL Query

Medium
3 views 25 Jan 2026
Parse ?q=react&page=2 from a URL and print an object....

Routing Without Framework

Hard
3 views 25 Jan 2026
Handle /, /health, and 404 using if statements....

Read JSON Body

Hard
3 views 25 Jan 2026
Read request body, parse JSON, and echo it back....

CORS Headers

Medium
3 views 25 Jan 2026
Add simple CORS headers for GET requests....

Set Cookie Header

Medium
4 views 25 Jan 2026
Return a response that sets a cookie and prints a message....

Static File Server

Hard
3 views 25 Jan 2026
Serve a local file for /file and 404 otherwise....

Request Timeout

Easy
5 views 25 Jan 2026
Close idle connections by setting a server timeout and print the value....

URL Builder Function

Easy
3 views 25 Jan 2026
Build a URL for meetcode search with query params....

Handle Large JSON Response

Medium
4 views 25 Jan 2026
Fetch JSON (mocked) and safely handle missing fields....

HTTP Client GET https

Hard
6 views 25 Jan 2026
Send a GET request using https and print status code....

Fetch With Timeout

Hard
4 views 25 Jan 2026
Use AbortController to timeout a fetch call....

Parse Cookies Header

Medium
3 views 25 Jan 2026
Parse Cookie header into an object and print JSON....

Basic Auth Header

Easy
4 views 25 Jan 2026
Build an Authorization header for basic auth and print it....

In-Memory Rate Limiter

Hard
4 views 25 Jan 2026
Limit to 3 requests per minute per key (demo counter)....

Handle Redirect Response

Medium
3 views 25 Jan 2026
Detect 301/302 and print the Location header (demo)....

Parse Form Urlencoded

Medium
4 views 25 Jan 2026
Parse x-www-form-urlencoded body into object and print JSON....

Keep-Alive Agent

Easy
5 views 25 Jan 2026
Create an http.Agent with keepAlive and print keepAlive status....

Send JSON With Status

Hard
3 views 25 Jan 2026
Return 201 JSON response for /create and 404 otherwise....

ETag 304 Cache

Hard
3 views 25 Jan 2026
Return 304 when If-None-Match matches, else return content with ETag....