Module
Hyper.Node.Server
- Package
- purescript-hyper
- Repository
- owickstrom/hyper
#HttpRequest Source
data HttpRequest
Instances
(Monad m) => Request HttpRequest m
(Monad m, MonadAff m) => ReadableBody HttpRequest m String
(Monad m, MonadAff m) => ReadableBody HttpRequest m Buffer
(MonadAff m) => StreamableBody HttpRequest m (Stream (read :: Read))
#NodeResponse Source
newtype NodeResponse m
Instances
(MonadAff m) => ResponseWritable (NodeResponse m) m String
(MonadAff m) => ResponseWritable (NodeResponse m) m (Tuple String Encoding)
(MonadAff m) => ResponseWritable (NodeResponse m) m Buffer
(MonadAff m) => Response HttpResponse m (NodeResponse m)
#writeString Source
writeString :: forall m. MonadAff m => Encoding -> String -> NodeResponse m
#runServer Source
runServer :: forall c' c. Options -> c -> Middleware Aff (Conn HttpRequest (HttpResponse StatusLineOpen) c) (Conn HttpRequest (HttpResponse ResponseEnded) c') Unit -> Effect Unit
#runServer' Source
runServer' :: forall c' c m. Functor m => Options -> c -> (forall a. m a -> Aff a) -> Middleware m (Conn HttpRequest (HttpResponse StatusLineOpen) c) (Conn HttpRequest (HttpResponse ResponseEnded) c') Unit -> Effect Unit
Re-exports from Hyper.Node.Server.Options
- Modules
- Hyper.
Authentication - Hyper.
Authorization - Hyper.
Conn - Hyper.
ContentNegotiation - Hyper.
Cookies - Hyper.
Form - Hyper.
Form. Urlencoded - Hyper.
Header - Hyper.
Middleware - Hyper.
Middleware. Class - Hyper.
Middleware. QualifiedDo - Hyper.
Node. BasicAuth - Hyper.
Node. FileServer - Hyper.
Node. Server - Hyper.
Node. Server. Options - Hyper.
Node. Session. InMemory - Hyper.
Node. Test - Hyper.
Request - Hyper.
Response - Hyper.
Session - Hyper.
Status - Hyper.
Test. TestServer