class

StatusCodeProbe

Inherits Deliver < Reference < Object

Fills in details.status_code for every endpoint (--status-codes) and drops the ones whose code the user excluded (--exclude-codes).

A Deliver subclass so it requests the same URL (probe_url) with the same headers (probe_headers) as every other probe. --probe-match / --probe-skip still don't apply: only the senders call apply_all.

Instance methods

apply(endpoints : Array(Endpoint)) : Array(Endpoint)
Source
perform_request(method, url, params = {} of String => String, form = {} of String => String, json = false, headers = {} of String => String)

The single point where a request leaves the process, so specs can drive apply against canned responses by overriding this one method.

Source