Pipeline
Pipelines
Pipeline is a computation expression used to combine HttpHandlers in a declarative manner.
The result of the computation expression is a standard Giraffe HttpHandler (docs), which means that it's easily composable with other parts of the Giraffe ecosystem.
Example:
open Saturn
let headerPipe = pipeline {
set_header "myCustomHeader" "abcd"
set_header "myCustomHeader2" "zxcv"
}
let endpointPipe = pipeline {
plug fetchSession
plug head
plug requestId
}API Reference
Full API reference for pipeline CE can be found here.
Full API reference for PipelineHelpers module containing useful helpers can be found here.
You can also use any HttpHandler defined in Giraffe in pipelines (using plug) - documentation can be found here.