Network.Wai.Middleware.Local

wai-extra-3.0.14.3: Provides some basic WAI handlers and middleware.

Safe Haskell | None
Language | Haskell98

Network.Wai.Middleware.Local

Description

Only allow local connections.

Synopsis

- local :: Response -> Middleware

# Documentation

local :: Response -> Middleware

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.