EndpointFlowModule

PackageAxial.Hosting.GenHttp
Embeds an application Flow into a GenHTTP endpoint Flow.

Summary

NameSignatureSynopsis
Operations
runEndpointFlow.run operation inputSupplies HttpEndpointEnv.App to the application workflow and marks its typed failures as application errors.

Operations

kind:member

run

EndpointFlow.run operation input
Member
Supplies HttpEndpointEnv.App to the application workflow and marks its typed failures as application errors.

Parameters

NameTypeDescription
operation'input -> Flow<'app, 'error, 'output>The HTTP-independent application workflow factory.
input'inputThe trusted input supplied to the application operation.

Returns

Flow<HttpEndpointEnv<'app>, EndpointError<'error>, 'output>

Verification Examples

let! created = EndpointFlow.run createSignup signup