limits command

This example demonstrates the use of Timeout, and Throttle middlewares.

Timeout: cancel a request if processing takes longer than 2.5 seconds, server will respond with a http.StatusGatewayTimeout.

Throttle: limit the number of in-flight requests along a particular routing path and backlog the others.

Version
v5.2.1 (latest)
Published
Jan 20, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
1 day ago

Tools for package owners.