class StatusCodeProbe
- StatusCodeProbe
- Reference
- Object
Overview
Fills in details.status_code for every endpoint (--status-codes) and
drops the ones whose code the user excluded (--exclude-codes).
Deliberately not a Deliver subclass, even though it is the other thing in
noir that fires HTTP requests at discovered endpoints. A status probe runs
before delivery, ignores --probe-match / --probe-skip, and sends none of
the --probe-header values — it exists to answer "does this route respond,
and with what", not to replay traffic. Inheriting the sender base would
quietly give it all three.
Included Modules
Defined in:
deliver/status_code.crConstructors
Instance Method Summary
- #apply(endpoints : Array(Endpoint)) : Array(Endpoint)
-
#perform_request(method, url, params = {} of String => String, form = {} of String => String, json = false)
The single point where a request leaves the process, so specs can drive
#applyagainst canned responses by overriding this one method.