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

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.Local

Description

Only allow local connections.

Synopsis

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.