Module

Hyper.Node.Server

Package
purescript-hyper
Repository
owickstrom/hyper

#HttpRequest Source

data HttpRequest

Instances

#NodeResponse Source

#writeString Source

writeString :: forall e m. MonadAff e m => Encoding -> String -> NodeResponse m e

#write Source

write :: forall e m. MonadAff e m => Buffer -> NodeResponse m e

#HttpResponse Source

data HttpResponse state

Instances

#defaultOptions Source

#defaultOptionsWithLogging Source

defaultOptionsWithLogging :: forall e. ServerOptions (console :: CONSOLE | e)

#runServer' Source

runServer' :: forall c' c e m. Functor m => ServerOptions e -> c -> (forall a. m a -> Aff (http :: HTTP | e) a) -> Middleware m (Conn HttpRequest (HttpResponse StatusLineOpen) c) (Conn HttpRequest (HttpResponse ResponseEnded) c') Unit -> Eff (http :: HTTP | e) Unit

#runServer Source

runServer :: forall c' c e. ServerOptions e -> c -> Middleware (Aff (http :: HTTP | e)) (Conn HttpRequest (HttpResponse StatusLineOpen) c) (Conn HttpRequest (HttpResponse ResponseEnded) c') Unit -> Eff (http :: HTTP | e) Unit