3 views
25 Jan 2026
Create an HTTP server that returns 'Hello meetcode'....
3 views
25 Jan 2026
Parse ?q=react&page=2 from a URL and print an object....
3 views
25 Jan 2026
Handle /, /health, and 404 using if statements....
3 views
25 Jan 2026
Read request body, parse JSON, and echo it back....
3 views
25 Jan 2026
Add simple CORS headers for GET requests....
4 views
25 Jan 2026
Return a response that sets a cookie and prints a message....
3 views
25 Jan 2026
Serve a local file for /file and 404 otherwise....
5 views
25 Jan 2026
Close idle connections by setting a server timeout and print the value....
3 views
25 Jan 2026
Build a URL for meetcode search with query params....
4 views
25 Jan 2026
Fetch JSON (mocked) and safely handle missing fields....
6 views
25 Jan 2026
Send a GET request using https and print status code....
4 views
25 Jan 2026
Use AbortController to timeout a fetch call....
3 views
25 Jan 2026
Parse Cookie header into an object and print JSON....
4 views
25 Jan 2026
Build an Authorization header for basic auth and print it....
4 views
25 Jan 2026
Limit to 3 requests per minute per key (demo counter)....
3 views
25 Jan 2026
Detect 301/302 and print the Location header (demo)....
4 views
25 Jan 2026
Parse x-www-form-urlencoded body into object and print JSON....
5 views
25 Jan 2026
Create an http.Agent with keepAlive and print keepAlive status....
3 views
25 Jan 2026
Return 201 JSON response for /create and 404 otherwise....
3 views
25 Jan 2026
Return 304 when If-None-Match matches, else return content with ETag....