Module

Hyper.Node.Server

Package
purescript-hyper
Repository
owickstrom/hyper

#HttpResponse Source

data HttpResponse state

Instances

#writeString Source

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

#write Source

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

#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

#Port Source

newtype Port

Constructors

Instances

#Options Source

type Options = { hostname :: Hostname, onListening :: Hostname -> Port -> Effect Unit, onRequestError :: Error -> Effect Unit, port :: Port }

#Hostname Source

newtype Hostname

Constructors

Instances

#defaultOptionsWithLogging Source

#defaultOptions Source