Versions in this module Expand all Collapse all v1 v1.0.3 Apr 4, 2026 v1.0.2 Apr 2, 2026 Changes in this version + func Call(api *restapi.Block, payload *Payload) func(context.Context, *server.Request, *flow.State) (any, error) + func CallJSON(api *restapi.Block, dest any, payload *Payload) func(context.Context, *server.Request, *flow.State) (any, error) + func Created(stateKey string) flow.StepFn + func JSON(statusCode int, stateKey string) flow.StepFn + func JSONFrom(statusCode int, fn func(*flow.State, *server.Request) any) flow.StepFn + func NoContent() flow.StepFn + func OK(stateKey string) flow.StepFn + func Redirect(code int, urlFn func(*flow.State, *server.Request) string) flow.StepFn + func Text(statusCode int, stateKey string) flow.StepFn + type Payload struct + func REST(method, path string) *Payload + func (p *Payload) Body(value any) *Payload + func (p *Payload) BodyFrom(fn func(*flow.State, *server.Request) any) *Payload + func (p *Payload) BodyFromState(stateKey string) *Payload + func (p *Payload) Build(req *server.Request, state *flow.State) (restapi.Request, error) + func (p *Payload) Header(key, value string) *Payload + func (p *Payload) HeaderFrom(key string, fn func(*flow.State, *server.Request) string) *Payload + func (p *Payload) HeaderFromRequest(headerName string) *Payload + func (p *Payload) HeaderFromRequestAs(destKey, srcHeader string) *Payload + func (p *Payload) PathParamFromRequest(placeholder, requestParam string) *Payload + func (p *Payload) PathParamFromState(placeholder, stateKey, field string) *Payload + func (p *Payload) Query(key, value string) *Payload + func (p *Payload) QueryFrom(key string, fn func(*flow.State, *server.Request) string) *Payload