graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Network.HTTP.Client.Blocklisting

Synopsis

Documentation

data Blocklist Source #

Constructors

Blocklist 

Instances

Instances details
Show Blocklist Source # 
Instance details

Defined in Network.HTTP.Client.Blocklisting

Generic Blocklist Source # 
Instance details

Defined in Network.HTTP.Client.Blocklisting

Associated Types

type Rep Blocklist :: Type -> Type #

Semigroup Blocklist Source # 
Instance details

Defined in Network.HTTP.Client.Blocklisting

Monoid Blocklist Source # 
Instance details

Defined in Network.HTTP.Client.Blocklisting

type Rep Blocklist Source # 
Instance details

Defined in Network.HTTP.Client.Blocklisting

type Rep Blocklist = D1 ('MetaData "Blocklist" "Network.HTTP.Client.Blocklisting" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Blocklist" 'PrefixI 'True) (S1 ('MetaSel ('Just "ipv4Blocklist") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [IPv4Range]) :*: S1 ('MetaSel ('Just "ipv6Blocklist") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [IPv6Range])))

block :: Blocklist -> AddrInfo -> Decision Source #

Determine whether the given address is blocked by the given blocklist. NOTE: Only restricts IPv4 and IPv6 addresses. Other address families are not restricted.