Spikard. LifecycleHookPhase
(spikard v0.17.0)
Copy Markdown
The five lifecycle phases a hook can be registered against.
Used to resolve a per-route named hook selection (LifecycleHooksConfig in
spikard-core::http) against the hooks actually registered on the server: a name is looked
up within one specific phase's registered hooks, not across all five, so a hook registered
for on_response can never be silently picked up by a route asking for on_request.
Summary
Functions
Returns the serde wire value this variant carries on the JSON boundary (see wire_variant_value in alef's naming module) -- distinct from the atom's Elixir spelling.