Class: Axn::Webhooks::StaticRespond
- Inherits:
-
Object
- Object
- Axn::Webhooks::StaticRespond
- Includes:
- Axn, VendorFacet
- Defined in:
- lib/axn/webhooks/static_respond.rb
Overview
The static_respond stage as an Axn: runs the endpoint's static_respond block — which reads no handler result, unlike Respond — to build a Response. Built as an Axn so a raise inside the (user-supplied) block is reported once via on_exception and mapped to a 500 by Endpoint#default_ack, never an unhandled exception escaping the HTTP mapper.
Instance Method Summary collapse
Methods included from VendorFacet
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'lib/axn/webhooks/static_respond.rb', line 17 def call expose response: Inbound::RespondContext.new.instance_exec(&responder) end |