examples/

directory
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0

Directories

Path Synopsis
Package main demonstrates a minimal HTTP server built with dioad/net/http.
Package main demonstrates a minimal HTTP server built with dioad/net/http.
Package main demonstrates IP-based access control: authorizing individual requests against a network ACL and wrapping a net.Listener so that only connections from allowed IPs are accepted.
Package main demonstrates IP-based access control: authorizing individual requests against a network ACL and wrapping a net.Listener so that only connections from allowed IPs are accepted.
Package main demonstrates rate limiting an HTTP server with limits supplied dynamically by a custom RateLimitSource.
Package main demonstrates rate limiting an HTTP server with limits supplied dynamically by a custom RateLimitSource.
Package main demonstrates rate limiting an HTTP server with static, per-principal limits.
Package main demonstrates rate limiting an HTTP server with static, per-principal limits.
Package main demonstrates rate limiting a raw TCP listener by source IP using ratelimit.Listener.
Package main demonstrates rate limiting a raw TCP listener by source IP using ratelimit.Listener.
Package main demonstrates configuring an HTTPS server with a self-signed TLS certificate.
Package main demonstrates configuring an HTTPS server with a self-signed TLS certificate.

Jump to

Keyboard shortcuts

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