Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype IpAddress = IpAddress {}
- showIPAddress :: IpAddress -> Text
- getSourceFromSocket :: Request -> IpAddress
- getSourceFromFallback :: Request -> IpAddress
- getSource :: Request -> Maybe IpAddress
- type NumericAddress = String
- showIPv4 :: Word32 -> Bool -> NumericAddress
- showIPv6 :: (Word32, Word32, Word32, Word32) -> String
- showSockAddr :: SockAddr -> NumericAddress
Documentation
IP Address related code
Instances
showIPAddress :: IpAddress -> Text Source #
getSourceFromSocket :: Request -> IpAddress Source #
getSourceFromFallback :: Request -> IpAddress Source #
type NumericAddress = String Source #
A type for IP address in numeric string representation.
showSockAddr :: SockAddr -> NumericAddress Source #
Convert SockAddr
to NumericAddress
. If the address is
IPv4-embedded IPv6 address, the IPv4 is extracted.