Module

Makkori

Package
purescript-makkori
Repository
justinwoo/purescript-makkori

#App Source

data App :: Type

#Middleware Source

#Request Source

data Request :: Type

#Response Source

data Response :: Type

#makeHandler Source

makeHandler :: forall e. (Request -> Response -> Eff e Unit) -> Handler e

#Path Source

newtype Path

Constructors

Instances

#Port Source

newtype Port

Constructors

Instances

#makeApp Source

makeApp :: forall e. Eff e App

#Method Source

data Method :: Type

#deleteMethod Source

#registerMethod Source

registerMethod :: forall e. Method -> Path -> Handler e -> App -> Eff e Unit

#get Source

get :: forall e. Path -> Handler e -> App -> Eff e Unit

#post Source

post :: forall e. Path -> Handler e -> App -> Eff e Unit

#put Source

put :: forall e. Path -> Handler e -> App -> Eff e Unit

#delete Source

delete :: forall e. Path -> Handler e -> App -> Eff e Unit

#StaticOptions Source

type StaticOptions = ()

#makeStaticMiddleware Source

makeStaticMiddleware :: forall e trash options. Union options trash StaticOptions => Path -> Record options -> Eff e Middleware

#JSONOptions Source

type JSONOptions = ()

#makeJSONMiddleware Source

makeJSONMiddleware :: forall e trash options. Union options trash JSONOptions => Record options -> Eff e Middleware

#use Source

use :: forall e. Path -> Middleware -> App -> Eff e Unit

#listen Source

listen :: forall e. Port -> Eff e Unit -> App -> Eff e Server

#close Source

close :: forall e. Eff e Unit -> Server -> Eff e Unit

#sendResponse Source

sendResponse :: forall e. String -> Response -> Eff e Unit

#setHeader Source

setHeader :: forall e. String -> String -> Response -> Eff e Unit

#setStatus Source

setStatus :: forall e. Int -> Response -> Eff e Unit

#getBody Source

getBody :: forall e. Request -> Eff e Foreign

#_makeApp Source

_makeApp :: forall e. Eff e App

#_registerMethod Source

#_makeStaticMiddleware Source

_makeStaticMiddleware :: forall options e. EffFn2 e Path options Middleware

#_makeJSONMiddleware Source

_makeJSONMiddleware :: forall options e. EffFn1 e options Middleware

#_listen Source

_listen :: forall e. EffFn3 e Port (Eff e Unit) App Server

#_close Source

_close :: forall e. EffFn2 e (Eff e Unit) Server Unit

#_sendResponse Source

#_setStatus Source

#_getBody Source

Modules
Makkori