Module: StubRequests::URI::Suffix
- Defined in:
- lib/stub_requests/uri/suffix.rb
Overview
Module Suffix deals with validating StubRequests::URI suffix
Constant Summary collapse
- PORT_REGEX =
Returns a pattern used for matching HTTP(S) ports
%r{:(\d+)/}.freeze
Class Method Summary collapse
-
.valid?(host) ⇒ true, false
Checks if the host has a valid suffix.
Class Method Details
.valid?(host) ⇒ true, false
Checks if the host has a valid suffix
31 32 33 |
# File 'lib/stub_requests/uri/suffix.rb', line 31 def self.valid?(host) PublicSuffix.valid?(host, default_rule: nil) end |