Deprecated: Please upgrade to the latest major version: go get github.com/go-chi/chi/v5
The highest tagged major version is
v5.
command
Version:
v1.5.5
Opens a new window with list of versions in this module.
Published: Sep 7, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Limits
======
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.