HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduleservant-0.20.3.0Haskell2010

Servant.API.Host

  • 1 type
  • Packageservant-0.20.3.0
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHost.hs
datadata Host (sym :: Symbol)
#

Match against the given host.

This allows you to define APIs over multiple domains. For example:

type API = Host "api1.example" :> API1
      :<|> Host "api2.example" :> API2