Capture a value from the request path under a certain type a.
Example:
-- GET /books/:isbntype MyApi = "books" :> Capture "isbn" Text :> Get '[JSON] Book
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11
Moduleservant-0.20.3.0Haskell2010
Capture a value from the request path under a certain type a.
Example:
-- GET /books/:isbntype MyApi = "books" :> Capture "isbn" Text :> Get '[JSON] Book
Capture which can be modified. For example with Description.
Capture all remaining values from the request path under a certain type
a.
Example:
-- GET /src/*type MyAPI = "src" :> CaptureAll "segments" Text :> Get '[JSON] SourceFile
(ToHttpApiData v, HasLink sub) => HasLink (CaptureAll sym v :> sub)Defined in servant-0.20.3.0 · Servant.Linkstype MkLink (CaptureAll sym v :> sub) a = [v] -> MkLink sub aDefined in servant-0.20.3.0 · Servant.Links