def redirect.if

bend-kit-http@0.38.2.0 · http.bend:1799

import bend-kit-http@0.38.2.0/http.bend as Http
import Base

1799def redirect.if(status: U32, h: Hop, loc: String, ok: Bool) -> Maybe<&1, Hop>:
1800  match ok:
1801    case False{}:
1802      None{}
1803    case True{}:
1804      redirect.hop(status, h, loc)

Uses (6)

Used by (1)