Deprecated: Please upgrade to the latest major version: go get github.com/go-chi/chi/v5
command
Version:
v4.1.2+incompatible
Opens a new window with list of versions in this module.
Published: Jun 2, 2020
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.