module Cryload::Cli::Validator

Extended Modules

Defined in:

cryload/cli_validator.cr

Constant Summary

URL_THRESHOLD_METRICS = {"max-p50" => Threshold::Metric::P50, "max-p75" => Threshold::Metric::P75, "max-p90" => Threshold::Metric::P90, "max-p95" => Threshold::Metric::P95, "max-p99" => Threshold::Metric::P99, "max-p999" => Threshold::Metric::P999, "max-avg" => Threshold::Metric::Avg, "max-latency" => Threshold::Metric::MaxLatency, "max-fail-rate" => Threshold::Metric::FailRate, "min-rps" => Threshold::Metric::Rps}
VALID_METHODS = {"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"}
VALID_OUTPUT_FORMATS = {"text", "json", "csv", "quiet"}

Instance Method Summary

Instance Method Detail

def header_name_present?(headers : Array(String), expected_name : String) #

def parse_success_status_ranges(raw_value : String | Nil) #

def parse_url_thresholds(raw_values : Array(String)) : Array(Threshold) #

PATTERN METRIC VALUE, whitespace separated. Colons and equals signs are avoided as separators because both appear inside URLs.


def valid_basic_auth?(auth : String) #

def valid_cookie?(cookie : String) #

def valid_header?(header : String) #

def valid_proxy?(url : String) #

def valid_url?(url : String) #

def validate(options : Options, &on_ready : String -> ) #