Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- startServer :: forall t env. ( FromJSON ( ContractDef t), ToJSON ( ContractDef t), PABContract t, MimeUnrender JSON ( ContractDef t), ToSchema ( ContractDef t)) => WebserverConfig -> Availability -> PABAction t env ( MVar (), PABAction t env ())
- startServer' :: forall t env. ( FromJSON ( ContractDef t), ToJSON ( ContractDef t), PABContract t, MimeUnrender JSON ( ContractDef t), ToSchema ( ContractDef t)) => [ Middleware ] -> Int -> Maybe TLSSettings -> Maybe FilePath -> Availability -> Int -> PABAction t env ( MVar (), PABAction t env ())
- startServerDebug :: ( FromJSON ( ContractDef t), ToJSON ( ContractDef t), PABContract t, MimeUnrender JSON ( ContractDef t), ToSchema ( ContractDef t)) => Simulation t ( Simulation t ())
- startServerDebug' :: ( FromJSON ( ContractDef t), ToJSON ( ContractDef t), PABContract t, MimeUnrender JSON ( ContractDef t), ToSchema ( ContractDef t)) => WebserverConfig -> Simulation t ( Simulation t ())
Documentation
:: forall t env. ( FromJSON ( ContractDef t), ToJSON ( ContractDef t), PABContract t, MimeUnrender JSON ( ContractDef t), ToSchema ( ContractDef t)) | |
=> WebserverConfig |
Optional file path for static assets |
-> Availability | |
-> PABAction t env ( MVar (), PABAction t env ()) |
Start the server using the config. Returns an action that shuts it down again, and an MVar that is filled when the webserver thread exits.
:: forall t env. ( FromJSON ( ContractDef t), ToJSON ( ContractDef t), PABContract t, MimeUnrender JSON ( ContractDef t), ToSchema ( ContractDef t)) | |
=> [ Middleware ] |
Optional wai middleware |
-> Int |
Port |
-> Maybe TLSSettings |
Optionally use HTTPS with these settings |
-> Maybe FilePath |
Optional file path for static assets |
-> Availability | |
-> Int | |
-> PABAction t env ( MVar (), PABAction t env ()) |
Start the server. Returns an action that shuts it down again, and an MVar that is filled when the webserver thread exits.
startServerDebug :: ( FromJSON ( ContractDef t), ToJSON ( ContractDef t), PABContract t, MimeUnrender JSON ( ContractDef t), ToSchema ( ContractDef t)) => Simulation t ( Simulation t ()) Source #
Start the server using a default configuration for debugging.
startServerDebug' :: ( FromJSON ( ContractDef t), ToJSON ( ContractDef t), PABContract t, MimeUnrender JSON ( ContractDef t), ToSchema ( ContractDef t)) => WebserverConfig -> Simulation t ( Simulation t ()) Source #
Start the server using (mostly) a default configuration for debugging, but allow an optional webserver config.