Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Types and subroutines related to constructing transformations on HTTP responses.
Synopsis
- data ResponseTransformCtx = ResponseTransformCtx {}
- runResponseTemplateTransform :: Template -> ResponseTransformCtx -> Either TransformErrorBundle Value
- runUnescapedResponseTemplateTransform :: ResponseTransformCtx -> UnescapedTemplate -> Either TransformErrorBundle ByteString
- runUnescapedResponseTemplateTransform' :: ResponseTransformCtx -> UnescapedTemplate -> Validation TransformErrorBundle ByteString
Documentation
data ResponseTransformCtx Source #
Common context that is made available to all response transformations.
runResponseTemplateTransform :: Template -> ResponseTransformCtx -> Either TransformErrorBundle Value Source #
A helper function for executing transformations from a Template
and a ResponseTransformCtx
.
NOTE: This and all related funtions are hard-coded to Kriti at the
moment. When we add additional template engines this function will
need to take a TemplatingEngine
parameter.