Safe Haskell | None |
---|---|
Language | Haskell2010 |
Only allow local connections.
- local :: Response -> Middleware
Documentation
local :: Response -> Middleware Source
This middleware rejects non-local connections with a specific response. It is useful when supporting web-based local applications, which would typically want to reject external connections.