| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Gitit.Server
Documentation
bytestring :: HasRqData m => m a -> m a #
Constructors
| Cookie | |
Fields
| |
Instances
| Data Cookie | |
Defined in Happstack.Server.Internal.Cookie Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Cookie -> c Cookie Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Cookie Source # toConstr :: Cookie -> Constr Source # dataTypeOf :: Cookie -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Cookie) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Cookie) Source # gmapT :: (forall b. Data b => b -> b) -> Cookie -> Cookie Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Cookie -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Cookie -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Cookie -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Cookie -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Cookie -> m Cookie Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Cookie -> m Cookie Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Cookie -> m Cookie Source # | |
| Read Cookie | |
| Show Cookie | |
| Eq Cookie | |
| MonadReader RqEnv RqData | |
Instances
| Show Response | |
| HasHeaders Response | |
Defined in Happstack.Server.Internal.Types | |
| ToMessage Response | |
Defined in Happstack.Server.Response Methods toContentType :: Response -> ByteString # toMessage :: Response -> ByteString # toResponse :: Response -> Response # | |
| Monad m => FilterMonad Response (ServerPartT m) | |
Defined in Happstack.Server.Internal.Monads Methods setFilter :: (Response -> Response) -> ServerPartT m () # composeFilter :: (Response -> Response) -> ServerPartT m () # getFilter :: ServerPartT m b -> ServerPartT m (b, Response -> Response) # | |
| Monad m => FilterMonad Response (WebT m) | |
| Monad m => WebMonad Response (ServerPartT m) | |
Defined in Happstack.Server.Internal.Monads Methods finishWith :: Response -> ServerPartT m b # | |
| Monad m => WebMonad Response (WebT m) | |
Defined in Happstack.Server.Internal.Monads Methods finishWith :: Response -> WebT m b # | |
Constructors
| Request | |
Instances
| Show Request | |
| HasHeaders Request | |
Defined in Happstack.Server.Internal.Types | |
Instances
| Data Method | |
Defined in Happstack.Server.Internal.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Method -> c Method Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Method Source # toConstr :: Method -> Constr Source # dataTypeOf :: Method -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Method) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Method) Source # gmapT :: (forall b. Data b => b -> b) -> Method -> Method Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Method -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Method -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Method -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Method -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Method -> m Method Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Method -> m Method Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Method -> m Method Source # | |
| Read Method | |
| Show Method | |
| Eq Method | |
| Ord Method | |
Defined in Happstack.Server.Internal.Types | |
| MatchMethod Method | |
Defined in Happstack.Server.Routing Methods matchMethod :: Method -> Method -> Bool # | |
| MatchMethod [Method] | |
Defined in Happstack.Server.Routing Methods matchMethod :: [Method] -> Method -> Bool # | |
| MatchMethod (Method -> Bool) | |
Defined in Happstack.Server.Routing | |
host :: (ServerMonad m, MonadPlus m) => String -> m a -> m a #
simpleHTTP :: ToMessage a => Conf -> ServerPartT IO a -> IO () #
addCookie :: (MonadIO m, FilterMonad Response m) => CookieLife -> Cookie -> m () #
dir :: (ServerMonad m, MonadPlus m) => String -> m a -> m a #
method :: (ServerMonad m, MonadPlus m, MatchMethod method) => method -> m () #
path :: (FromReqURI a, MonadPlus m, ServerMonad m) => (a -> m b) -> m b #
data CookieLife #
Instances
| Read CookieLife | |
Defined in Happstack.Server.Internal.Cookie | |
| Show CookieLife | |
Defined in Happstack.Server.Internal.Cookie | |
| Eq CookieLife | |
Defined in Happstack.Server.Internal.Cookie Methods (==) :: CookieLife -> CookieLife -> Bool Source # (/=) :: CookieLife -> CookieLife -> Bool Source # | |
| Ord CookieLife | |
Defined in Happstack.Server.Internal.Cookie Methods compare :: CookieLife -> CookieLife -> Ordering Source # (<) :: CookieLife -> CookieLife -> Bool Source # (<=) :: CookieLife -> CookieLife -> Bool Source # (>) :: CookieLife -> CookieLife -> Bool Source # (>=) :: CookieLife -> CookieLife -> Bool Source # max :: CookieLife -> CookieLife -> CookieLife Source # min :: CookieLife -> CookieLife -> CookieLife Source # | |
Constructors
| ContentLength | |
| TransferEncodingChunked | |
| NoContentLength |
Instances
| Enum Length | |
Defined in Happstack.Server.Internal.Types Methods succ :: Length -> Length Source # pred :: Length -> Length Source # toEnum :: Int -> Length Source # fromEnum :: Length -> Int Source # enumFrom :: Length -> [Length] Source # enumFromThen :: Length -> Length -> [Length] Source # enumFromTo :: Length -> Length -> [Length] Source # enumFromThenTo :: Length -> Length -> Length -> [Length] Source # | |
| Read Length | |
| Show Length | |
| Eq Length | |
| Ord Length | |
Defined in Happstack.Server.Internal.Types | |
class Monad m => FilterMonad a (m :: Type -> Type) | m -> a where #
Instances
| Monad m => FilterMonad Response (ServerPartT m) | |
Defined in Happstack.Server.Internal.Monads Methods setFilter :: (Response -> Response) -> ServerPartT m () # composeFilter :: (Response -> Response) -> ServerPartT m () # getFilter :: ServerPartT m b -> ServerPartT m (b, Response -> Response) # | |
| Monad m => FilterMonad Response (WebT m) | |
| Monad m => FilterMonad a (FilterT a m) | |
Defined in Happstack.Server.Internal.Monads | |
| FilterMonad a m => FilterMonad a (ExceptT e m) | |
| FilterMonad res m => FilterMonad res (ReaderT r m) | |
| FilterMonad res m => FilterMonad res (StateT s m) | |
| FilterMonad res m => FilterMonad res (StateT s m) | |
| (FilterMonad res m, Monoid w) => FilterMonad res (WriterT w m) | |
| (FilterMonad res m, Monoid w) => FilterMonad res (WriterT w m) | |
| (FilterMonad res m, Monoid w) => FilterMonad res (RWST r w s m) | |
| (FilterMonad res m, Monoid w) => FilterMonad res (RWST r w s m) | |
spUnwrapErrorT :: Monad m => (e -> ServerPartT m a) -> Request -> UnWebT (ExceptT e m) a -> UnWebT m a #
Constructors
| SameSiteLax | |
| SameSiteStrict | |
| SameSiteNone | |
| SameSiteNoValue |
Instances
| Data SameSite | |
Defined in Happstack.Server.Internal.Cookie Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SameSite -> c SameSite Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SameSite Source # toConstr :: SameSite -> Constr Source # dataTypeOf :: SameSite -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SameSite) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SameSite) Source # gmapT :: (forall b. Data b => b -> b) -> SameSite -> SameSite Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SameSite -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SameSite -> r Source # gmapQ :: (forall d. Data d => d -> u) -> SameSite -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> SameSite -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SameSite -> m SameSite Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SameSite -> m SameSite Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SameSite -> m SameSite Source # | |
| Read SameSite | |
| Show SameSite | |
| Eq SameSite | |
| Ord SameSite | |
Defined in Happstack.Server.Internal.Cookie | |
data ContentType #
Constructors
| ContentType | |
Instances
| Read ContentType | |
Defined in Happstack.Server.Internal.RFC822Headers | |
| Show ContentType | |
Defined in Happstack.Server.Internal.RFC822Headers | |
| Eq ContentType | |
Defined in Happstack.Server.Internal.RFC822Headers Methods (==) :: ContentType -> ContentType -> Bool Source # (/=) :: ContentType -> ContentType -> Bool Source # | |
| Ord ContentType | |
Defined in Happstack.Server.Internal.RFC822Headers Methods compare :: ContentType -> ContentType -> Ordering Source # (<) :: ContentType -> ContentType -> Bool Source # (<=) :: ContentType -> ContentType -> Bool Source # (>) :: ContentType -> ContentType -> Bool Source # (>=) :: ContentType -> ContentType -> Bool Source # max :: ContentType -> ContentType -> ContentType Source # min :: ContentType -> ContentType -> ContentType Source # | |
class FromReqURI a where #
Methods
fromReqURI :: String -> Maybe a #
Instances
type Headers = Map ByteString HeaderPair #
data HeaderPair #
Constructors
| HeaderPair | |
Fields
| |
Instances
| Read HeaderPair | |
Defined in Happstack.Server.Internal.Types | |
| Show HeaderPair | |
Defined in Happstack.Server.Internal.Types | |
| HasHeaders Headers | |
Defined in Happstack.Server.Internal.Types | |
type LogAccess time = String -> String -> time -> String -> Int -> Integer -> String -> String -> IO () #
data HttpVersion #
Constructors
| HttpVersion Int Int |
Instances
| Read HttpVersion | |
Defined in Happstack.Server.Internal.Types | |
| Show HttpVersion | |
Defined in Happstack.Server.Internal.Types | |
| Eq HttpVersion | |
Defined in Happstack.Server.Internal.Types Methods (==) :: HttpVersion -> HttpVersion -> Bool Source # (/=) :: HttpVersion -> HttpVersion -> Bool Source # | |
continueHTTP :: Request -> Response -> Bool #
logMAccess :: FormatTime t => LogAccess t #
nullRsFlags :: RsFlags #
noContentLength :: Response -> Response #
contentLength :: Response -> Response #
getHeader :: HasHeaders r => String -> r -> Maybe ByteString #
getHeaderBS :: HasHeaders r => ByteString -> r -> Maybe ByteString #
getHeaderUnsafe :: HasHeaders r => ByteString -> r -> Maybe ByteString #
hasHeaderBS :: HasHeaders r => ByteString -> r -> Bool #
hasHeaderUnsafe :: HasHeaders r => ByteString -> r -> Bool #
setHeaderBS :: HasHeaders r => ByteString -> ByteString -> r -> r #
setHeaderUnsafe :: HasHeaders r => ByteString -> HeaderPair -> r -> r #
addHeaderBS :: HasHeaders r => ByteString -> ByteString -> r -> r #
addHeaderUnsafe :: HasHeaders r => ByteString -> HeaderPair -> r -> r #
resultBS :: Int -> ByteString -> Response #
data BodyPolicy #
defaultBodyPolicy :: FilePath -> Int64 -> Int64 -> Int64 -> BodyPolicy #
decodeBody :: (ServerMonad m, MonadPlus m, MonadIO m, FilterMonad Response m, WebMonad Response m) => BodyPolicy -> m () #
class Monad m => WebMonad a (m :: Type -> Type) | m -> a where #
Methods
finishWith :: a -> m b #
Instances
class Monad m => ServerMonad (m :: Type -> Type) where #
Instances
| Monad m => ServerMonad (ServerPartT m) | |
Defined in Happstack.Server.Internal.Monads Methods askRq :: ServerPartT m Request # localRq :: (Request -> Request) -> ServerPartT m a -> ServerPartT m a # | |
| ServerMonad m => ServerMonad (ExceptT e m) | |
| ServerMonad m => ServerMonad (ReaderT r m) | |
| ServerMonad m => ServerMonad (StateT s m) | |
| ServerMonad m => ServerMonad (StateT s m) | |
| (ServerMonad m, Monoid w) => ServerMonad (WriterT w m) | |
| (ServerMonad m, Monoid w) => ServerMonad (WriterT w m) | |
| (ServerMonad m, Monoid w) => ServerMonad (RWST r w s m) | |
| (ServerMonad m, Monoid w) => ServerMonad (RWST r w s m) | |
data ServerPartT (m :: Type -> Type) a #
Instances
type ServerPart a = ServerPartT IO a #
mapServerPartT :: (UnWebT m a -> UnWebT n b) -> ServerPartT m a -> ServerPartT n b #
mapServerPartT' :: (Request -> UnWebT m a -> UnWebT n b) -> ServerPartT m a -> ServerPartT n b #
ignoreFilters :: FilterMonad a m => m () #
escape :: (WebMonad a m, FilterMonad a m) => m a -> m b #
escape' :: (WebMonad a m, FilterMonad a m) => a -> m b #
escapeHTTP :: (ServerMonad m, MonadIO m) => (TimeoutIO -> IO ()) -> m a #
Minimal complete definition
Nothing
Methods
toContentType :: a -> ByteString #
toMessage :: a -> ByteString #
toResponse :: a -> Response #
Instances
| ToMessage Html | |
Defined in Happstack.Server.Response Methods toContentType :: Html -> ByteString # toMessage :: Html -> ByteString # toResponse :: Html -> Response # | |
| ToMessage ByteString | |
Defined in Happstack.Server.Response Methods toContentType :: ByteString -> ByteString # toMessage :: ByteString -> ByteString # toResponse :: ByteString -> Response # | |
| ToMessage ByteString | |
Defined in Happstack.Server.Response Methods toContentType :: ByteString -> ByteString # toMessage :: ByteString -> ByteString # toResponse :: ByteString -> Response # | |
| ToMessage Response | |
Defined in Happstack.Server.Response Methods toContentType :: Response -> ByteString # toMessage :: Response -> ByteString # toResponse :: Response -> Response # | |
| ToMessage Html | |
Defined in Happstack.Server.Response Methods toContentType :: Html -> ByteString # toMessage :: Html -> ByteString # toResponse :: Html -> Response # | |
| ToMessage Text | |
Defined in Happstack.Server.Response Methods toContentType :: Text -> ByteString # toMessage :: Text -> ByteString # toResponse :: Text -> Response # | |
| ToMessage Text | |
Defined in Happstack.Server.Response Methods toContentType :: Text -> ByteString # toMessage :: Text -> ByteString # toResponse :: Text -> Response # | |
| ToMessage Html | |
Defined in Happstack.Server.Response Methods toContentType :: Html -> ByteString # toMessage :: Html -> ByteString # toResponse :: Html -> Response # | |
| ToMessage Integer | |
Defined in Happstack.Server.Response Methods toContentType :: Integer -> ByteString # toMessage :: Integer -> ByteString # toResponse :: Integer -> Response # | |
| ToMessage String | |
Defined in Happstack.Server.Response Methods toContentType :: String -> ByteString # toMessage :: String -> ByteString # toResponse :: String -> Response # | |
| ToMessage () | |
Defined in Happstack.Server.Response Methods toContentType :: () -> ByteString # toMessage :: () -> ByteString # toResponse :: () -> Response # | |
| ToMessage a => ToMessage (Maybe a) | |
Defined in Happstack.Server.Response Methods toContentType :: Maybe a -> ByteString # toMessage :: Maybe a -> ByteString # toResponse :: Maybe a -> Response # | |
toResponseBS :: ByteString -> ByteString -> Response #
setResponseCode :: FilterMonad Response m => Int -> m () #
resp :: FilterMonad Response m => Int -> b -> m b #
ok :: FilterMonad Response m => a -> m a #
noContent :: FilterMonad Response m => a -> m a #
movedPermanently :: (FilterMonad Response m, ToSURI a) => a -> res -> m res #
found :: (FilterMonad Response m, ToSURI uri) => uri -> res -> m res #
seeOther :: (FilterMonad Response m, ToSURI uri) => uri -> res -> m res #
tempRedirect :: (FilterMonad Response m, ToSURI a) => a -> res -> m res #
badRequest :: FilterMonad Response m => a -> m a #
unauthorized :: FilterMonad Response m => a -> m a #
forbidden :: FilterMonad Response m => a -> m a #
notFound :: FilterMonad Response m => a -> m a #
requestEntityTooLarge :: FilterMonad Response m => a -> m a #
internalServerError :: FilterMonad Response m => a -> m a #
badGateway :: FilterMonad Response m => a -> m a #
prettyResponse :: Response -> String #
validateConf :: Conf #
wdgHTMLValidator :: (MonadIO m, ToMessage r) => r -> m Response #
noopValidator :: Response -> IO Response #
lazyProcValidator :: FilePath -> [String] -> Maybe FilePath -> Maybe [(String, String)] -> (Maybe ByteString -> Bool) -> Response -> IO Response #
addCookies :: (MonadIO m, FilterMonad Response m) => [(CookieLife, Cookie)] -> m () #
expireCookie :: (MonadIO m, FilterMonad Response m) => String -> m () #
Instances
| FromData GithubCallbackPars Source # | |
Defined in Network.Gitit.Authentication.Github Methods | |
| FromData Command Source # | |
Defined in Network.Gitit.Types | |
| FromData Params Source # | |
Defined in Network.Gitit.Types | |
| FromData SessionKey Source # | |
Defined in Network.Gitit.Types Methods | |
| FromData a => FromData (Maybe a) | |
Defined in Happstack.Server.RqData | |
| (FromData a, FromData b) => FromData (a, b) | |
Defined in Happstack.Server.RqData | |
| (FromData a, FromData b, FromData c) => FromData (a, b, c) | |
Defined in Happstack.Server.RqData | |
| (FromData a, FromData b, FromData c, FromData d) => FromData (a, b, c, d) | |
Defined in Happstack.Server.RqData | |
class HasRqData (m :: Type -> Type) where #
Instances
| HasRqData RqData | |
| (MonadIO m, MonadPlus m) => HasRqData (ServerPartT m) | |
Defined in Happstack.Server.RqData Methods askRqEnv :: ServerPartT m RqEnv # localRqEnv :: (RqEnv -> RqEnv) -> ServerPartT m a -> ServerPartT m a # rqDataError :: Errors String -> ServerPartT m a # | |
| (Monad m, HasRqData m) => HasRqData (ExceptT e m) | |
| (Monad m, HasRqData m) => HasRqData (ReaderT s m) | |
| (Monad m, HasRqData m) => HasRqData (StateT s m) | |
| (Monad m, HasRqData m) => HasRqData (StateT s m) | |
| (Monad m, HasRqData m, Monoid w) => HasRqData (WriterT w m) | |
| (Monad m, HasRqData m, Monoid w) => HasRqData (WriterT w m) | |
| (Monad m, HasRqData m, Monoid w) => HasRqData (RWST r w s m) | |
| (Monad m, HasRqData m, Monoid w) => HasRqData (RWST r w s m) | |
Instances
| Alternative (Either (Errors a)) | |
| Alternative (Either (Errors a)) => MonadPlus (Either (Errors a)) | |
| Monoid (Errors a) | |
| Semigroup (Errors a) | |
| Data a => Data (Errors a) | |
Defined in Happstack.Server.RqData Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Errors a -> c (Errors a) Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Errors a) Source # toConstr :: Errors a -> Constr Source # dataTypeOf :: Errors a -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Errors a)) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Errors a)) Source # gmapT :: (forall b. Data b => b -> b) -> Errors a -> Errors a Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Errors a -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Errors a -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Errors a -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Errors a -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Errors a -> m (Errors a) Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Errors a -> m (Errors a) Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Errors a -> m (Errors a) Source # | |
| Read a => Read (Errors a) | |
| Show a => Show (Errors a) | |
| Eq a => Eq (Errors a) | |
| Ord a => Ord (Errors a) | |
Defined in Happstack.Server.RqData | |
readCookieValue :: (Functor m, Monad m, HasRqData m, FromReqURI a) => String -> m a #
lookPairsBS :: (Monad m, HasRqData m) => m [(String, Either FilePath ByteString)] #
withDataFn :: (HasRqData m, MonadPlus m, ServerMonad m) => RqData a -> (a -> m r) -> m r #
queryString :: HasRqData m => m a -> m a #
class (ServerMonad m, WebMonad Response m, FilterMonad Response m, MonadIO m, MonadPlus m, HasRqData m, Monad m, Functor m, Applicative m, Alternative m) => Happstack (m :: Type -> Type) #
Instances
| (Functor m, Monad m, MonadPlus m, MonadIO m) => Happstack (ServerPartT m) | |
Defined in Happstack.Server.Monads | |
| (Happstack m, Monoid e) => Happstack (ExceptT e m) | |
Defined in Happstack.Server.Monads | |
| Happstack m => Happstack (ReaderT r m) | |
Defined in Happstack.Server.Monads | |
| Happstack m => Happstack (StateT s m) | |
Defined in Happstack.Server.Monads | |
| Happstack m => Happstack (StateT s m) | |
Defined in Happstack.Server.Monads | |
| (Happstack m, Monoid w) => Happstack (WriterT w m) | |
Defined in Happstack.Server.Monads | |
| (Happstack m, Monoid w) => Happstack (WriterT w m) | |
Defined in Happstack.Server.Monads | |
| (Happstack m, Monoid w) => Happstack (RWST r w s m) | |
Defined in Happstack.Server.Monads | |
| (Happstack m, Monoid w) => Happstack (RWST r w s m) | |
Defined in Happstack.Server.Monads | |
getHeaderM :: ServerMonad m => String -> m (Maybe ByteString) #
addHeaderM :: FilterMonad Response m => String -> String -> m () #
setHeaderM :: FilterMonad Response m => String -> String -> m () #
neverExpires :: FilterMonad Response m => m () #
class MatchMethod m where #
Methods
matchMethod :: m -> Method -> Bool #
Instances
| MatchMethod Method | |
Defined in Happstack.Server.Routing Methods matchMethod :: Method -> Method -> Bool # | |
| MatchMethod () | |
Defined in Happstack.Server.Routing Methods matchMethod :: () -> Method -> Bool # | |
| MatchMethod [Method] | |
Defined in Happstack.Server.Routing Methods matchMethod :: [Method] -> Method -> Bool # | |
| MatchMethod (Method -> Bool) | |
Defined in Happstack.Server.Routing | |
http :: (ServerMonad m, MonadPlus m) => m () #
https :: (ServerMonad m, MonadPlus m) => m () #
methodM :: (ServerMonad m, MonadPlus m, MatchMethod method) => method -> m () #
methodOnly :: (ServerMonad m, MonadPlus m, MatchMethod method) => method -> m () #
methodSP :: (ServerMonad m, MonadPlus m, MatchMethod method) => method -> m b -> m b #
nullDir :: (ServerMonad m, MonadPlus m) => m () #
dirs :: (ServerMonad m, MonadPlus m) => FilePath -> m a -> m a #
withHost :: (ServerMonad m, MonadPlus m) => (String -> m a) -> m a #
uriRest :: ServerMonad m => (String -> m a) -> m a #
anyPath :: (ServerMonad m, MonadPlus m) => m r -> m r #
trailingSlash :: (ServerMonad m, MonadPlus m) => m () #
noTrailingSlash :: (ServerMonad m, MonadPlus m) => m () #
Constructors
| EnableBrowsing | |
| DisableBrowsing |
Instances
| Data Browsing | |
Defined in Happstack.Server.FileServe.BuildingBlocks Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Browsing -> c Browsing Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Browsing Source # toConstr :: Browsing -> Constr Source # dataTypeOf :: Browsing -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Browsing) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Browsing) Source # gmapT :: (forall b. Data b => b -> b) -> Browsing -> Browsing Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Browsing -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Browsing -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Browsing -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Browsing -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Browsing -> m Browsing Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Browsing -> m Browsing Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Browsing -> m Browsing Source # | |
| Enum Browsing | |
Defined in Happstack.Server.FileServe.BuildingBlocks Methods succ :: Browsing -> Browsing Source # pred :: Browsing -> Browsing Source # toEnum :: Int -> Browsing Source # fromEnum :: Browsing -> Int Source # enumFrom :: Browsing -> [Browsing] Source # enumFromThen :: Browsing -> Browsing -> [Browsing] Source # enumFromTo :: Browsing -> Browsing -> [Browsing] Source # enumFromThenTo :: Browsing -> Browsing -> Browsing -> [Browsing] Source # | |
| Read Browsing | |
| Show Browsing | |
| Eq Browsing | |
| Ord Browsing | |
Defined in Happstack.Server.FileServe.BuildingBlocks | |
defaultIxFiles :: [FilePath] #
serveFile :: (ServerMonad m, FilterMonad Response m, MonadIO m, MonadPlus m) => (FilePath -> m String) -> FilePath -> m Response #
serveFileFrom :: (ServerMonad m, FilterMonad Response m, MonadIO m, MonadPlus m) => FilePath -> (FilePath -> m String) -> FilePath -> m Response #
fileServe :: (WebMonad Response m, ServerMonad m, FilterMonad Response m, MonadIO m, MonadPlus m) => [FilePath] -> FilePath -> m Response #
serveDirectory :: (WebMonad Response m, ServerMonad m, FilterMonad Response m, MonadIO m, MonadPlus m) => Browsing -> [FilePath] -> FilePath -> m Response #
simpleErrorHandler :: forall (m :: Type -> Type). Monad m => String -> ServerPartT m Response #
errorHandlerSP :: forall (m :: Type -> Type) e a. Monad m => (Request -> e -> WebT m a) -> ServerPartT (ExceptT e m) a -> ServerPartT m a #
basicAuthBy :: Happstack m => (ByteString -> ByteString -> Bool) -> String -> m a -> m a #
validLoginPlaintext :: Map String String -> ByteString -> ByteString -> Bool #
simpleHTTP' :: (ToMessage b, Monad m, Functor m) => (UnWebT m a -> UnWebT IO b) -> Conf -> ServerPartT m a -> IO () #
simpleHTTP'' :: (ToMessage b, Monad m, Functor m) => ServerPartT m b -> Request -> m Response #
simpleHTTPWithSocket :: ToMessage a => Socket -> Conf -> ServerPartT IO a -> IO () #
simpleHTTPWithSocket' :: (ToMessage b, Monad m, Functor m) => (UnWebT m a -> UnWebT IO b) -> Socket -> Conf -> ServerPartT m a -> IO () #
waitForTermination :: IO () #
withExpiresHeaders :: ServerMonad m => m Response -> m Response Source #
compressedResponseFilter :: (FilterMonad Response m, MonadPlus m, WebMonad Response m, ServerMonad m, MonadFail m) => m String #