navigation

Pipeline

Namespace: Saturn
Parent: Saturn

Module containing pipeline computation expression


Declared Types
Type Description
PipelineBuilder

Computation expression used to combine HttpHandlers in a declarative manner.

The result of the computation expression is a standard Giraffe HttpHandler which means that it's easily composable with other parts of the Giraffe ecosystem.

Example:

let headerPipe = pipeline {
    set_header "myCustomHeader" "abcd"
    set_header "myCustomHeader2" "zxcv"
}

let endpointPipe = pipeline {
    plug fetchSession
    plug head
    plug requestId
}
val headerPipe : obj
val endpointPipe : obj

Values and Functions
Name Description
pipeline
Signature: PipelineBuilder

pipeline computation expression is a way to create HttpHandler using composition of low-level helper functions.