iterio-server-0.2: Library for building servers with IterIO

Safe HaskellSafe-Infered

Data.IterIO.Http.Support.Routing

Description

Utility functions for routing.

Synopsis

Documentation

runLHttpRoute :: Monad m => HttpRoute m s -> HttpReq s -> Iter ByteString m (HttpResp m)Source

Like runHttpRoute but replaces GET and POST request headers with the value of the X-HTTP-Method-Override HTTP header if it is present. This allows applicaitons to respond to DELETE and PUT methods even though many browsers do not support those methods.