cloudchor-0.1.0.0: Lightweight and efficient choreographic programming for cloud services
Safe HaskellNone
LanguageGHC2021

Choreography.Network.Http

Description

This module implments the HTTP message transport backend for the Network monad.

Synopsis

Servant API

Http configuration

newtype HttpConfig Source #

The HTTP backend configuration specifies how locations are mapped to network hosts and ports.

Constructors

HttpConfig 

Instances

Instances details
Backend HttpConfig Source # 
Instance details

Defined in Choreography.Network.Http

Methods

locs :: HttpConfig -> [LocTm] Source #

runNetwork :: MonadIO m => HttpConfig -> LocTm -> Network m a -> m a Source #

type Port = Int Source #

mkHttpConfig :: [(LocTm, (Host, Port))] -> HttpConfig Source #

Create a HTTP backend configuration from a association list that maps locations to network hosts and ports.

Receiving channels

HTTP backend