EndpointFlowModule
PackageAxial.Hosting.GenHttp
Embeds an application Flow into a GenHTTP endpoint Flow.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| run | EndpointFlow.run operation input | Supplies HttpEndpointEnv.App to the application workflow and marks its typed failures as application errors. |
Operations
kind:member
Supplies
HttpEndpointEnv.App to the application workflow and marks its typed failures as application errors.Parameters
| Name | Type | Description |
|---|---|---|
| operation | 'input -> Flow<'app, 'error, 'output> | The HTTP-independent application workflow factory. |
| input | 'input | The trusted input supplied to the application operation. |
Returns
Flow<HttpEndpointEnv<'app>, EndpointError<'error>, 'output>
Verification Examples
let! created = EndpointFlow.run createSignup signup
