linnet-0.1.0.0: Lightweight library for building HTTP API

Safe HaskellNone
LanguageHaskell2010

Linnet.Endpoints.Methods

Synopsis

Documentation

get :: Endpoint m a -> Endpoint m a Source #

Turn endpoint into one that matches only for GET requests

post :: Endpoint m a -> Endpoint m a Source #

Turn endpoint into one that matches only for POST requests

put :: Endpoint m a -> Endpoint m a Source #

Turn endpoint into one that matches only for PUT requests

patch :: Endpoint m a -> Endpoint m a Source #

Turn endpoint into one that matches only for PATCH requests

delete :: Endpoint m a -> Endpoint m a Source #

Turn endpoint into one that matches only for DELETE requests

head' :: Endpoint m a -> Endpoint m a Source #

Turn endpoint into one that matches only for HEAD requests

trace' :: Endpoint m a -> Endpoint m a Source #

Turn endpoint into one that matches only for TRACE requests

connect :: Endpoint m a -> Endpoint m a Source #

Turn endpoint into one that matches only for CONNECT requests

options :: Endpoint m a -> Endpoint m a Source #

Turn endpoint into one that matches only for OPTIONS requests