echosrv

command
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Echosrv is a web server that echoes the path component of the URL. It also counts the HTTP requests. NOTE: Handler for each incoming request is run in a separate goroutine. To avoid race conditions we need to protect the count variable with a mutex.

Level: beginner Topics: web server, net/http, locking, sync.Mutex

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL