snap-predicates-0.3.1: Declarative routing for Snap.

Safe HaskellNone

Snap.Predicate.Content

Synopsis

Documentation

type Content x y = MediaType x ySource

data ContentType t s Source

A Predicate against the Requests "Content-Type" header.

Constructors

ContentType t s 

Instances

(Eq t, Eq s) => Eq (ContentType t s) 
(Show t, Show s) => Show (ContentType t s) 
(MType t, MSubType s) => Predicate (ContentType t s) Request