Module
Hyper.Node.Server
- Package
- purescript-hyper
- Repository
- owickstrom/hyper
#HttpRequest Source
data HttpRequest
Instances
(Monad m) => Request HttpRequest m
(Monad m, MonadAff (avar :: AVAR, buffer :: BUFFER, http :: HTTP | e) m) => ReadableBody HttpRequest m String
(Monad m, MonadAff (avar :: AVAR, buffer :: BUFFER, http :: HTTP | e) m) => ReadableBody HttpRequest m Buffer
(MonadAff (http :: HTTP | e) m) => StreamableBody HttpRequest m (Stream (read :: Read) (exception :: EXCEPTION, http :: HTTP | e))
#NodeResponse Source
newtype NodeResponse m e
Instances
(MonadAff e m) => ResponseWritable (NodeResponse m e) m String
(MonadAff e m) => ResponseWritable (NodeResponse m e) m (Tuple String Encoding)
(MonadAff e m) => ResponseWritable (NodeResponse m e) m Buffer
(MonadAff (http :: HTTP | e) m) => Response HttpResponse m (NodeResponse m (http :: HTTP | e))
#writeString Source
writeString :: forall e m. MonadAff e m => Encoding -> String -> NodeResponse m e
#HttpResponse Source
data HttpResponse state
Instances
(MonadAff (http :: HTTP | e) m) => Response HttpResponse m (NodeResponse m (http :: HTTP | e))
#defaultOptions Source
defaultOptions :: forall e. ServerOptions e
#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
- Modules
- Hyper.
Authentication - Hyper.
Authorization - Hyper.
Conn - Hyper.
ContentNegotiation - Hyper.
Cookies - Hyper.
Form - Hyper.
Form. Urlencoded - Hyper.
Header - Hyper.
Middleware - Hyper.
Middleware. Class - Hyper.
Node. BasicAuth - Hyper.
Node. FileServer - Hyper.
Node. Server - Hyper.
Node. Session. InMemory - Hyper.
Node. Test - Hyper.
Port - Hyper.
Request - Hyper.
Response - Hyper.
Session - Hyper.
Status - Hyper.
Test. TestServer