Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chain ¶ added in v0.0.7
func Chain(next http.Handler, ms ...Middleware) http.Handler
Chain creates a chain of HTTP middleware functions to wrap around a http.Handler. It applies each middleware in the order they are provided, allowing for layered processing of HTTP requests and responses.
func ExactPath ¶
ExactPath creates a middleware that checks if the request's path exactly matches the given path. If the path does not match, it returns a 404 Not Found response. Otherwise, it passes the request to the next handler in the chain.
Types ¶
Click to show internal directories.
Click to hide internal directories.