Class: Axn::Webhooks::Inbound::BuildRequest

Inherits:
Object
  • Object
show all
Includes:
Axn, VendorFacet
Defined in:
lib/axn/webhooks/inbound/build_request.rb

Overview

Wraps Request.from_rack in an Axn boundary so a malformed/adversarial env (missing rack.input, etc.) is reported via Axn.config.on_exception and mapped to a clean 500 by Endpoint#call, never an unhandled exception escaping the Rack app.

Instance Method Summary collapse

Methods included from VendorFacet

included

Instance Method Details

#callObject



17
18
19
# File 'lib/axn/webhooks/inbound/build_request.rb', line 17

def call
  expose request: Axn::Webhooks::Request.from_rack(env)
end