Class: Crawlberg::SsrfPolicy

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSsrfPolicy

Returns a new instance of SsrfPolicy.

Parameters:

  • deny_private: (Boolean)
  • allowlist: (Array[HostMatcher])
  • max_redirects: (Integer)


478
# File 'sig/types.rbs', line 478

def initialize: (?deny_private: bool, ?allowlist: Array[HostMatcher], ?max_redirects: Integer) -> void

Instance Attribute Details

#allowlistArray[HostMatcher]?

Returns the value of attribute allowlist.

Returns:



475
476
477
# File 'sig/types.rbs', line 475

def allowlist
  @allowlist
end

#deny_privateBoolean?

Returns the value of attribute deny_private.

Returns:

  • (Boolean, nil)


474
475
476
# File 'sig/types.rbs', line 474

def deny_private
  @deny_private
end

#max_redirectsInteger?

Returns the value of attribute max_redirects.

Returns:

  • (Integer, nil)


476
477
478
# File 'sig/types.rbs', line 476

def max_redirects
  @max_redirects
end

Class Method Details

.defaultSsrfPolicy

Returns:



479
# File 'sig/types.rbs', line 479

def self.default: () -> SsrfPolicy

.from_envSsrfPolicy

Returns:



480
# File 'sig/types.rbs', line 480

def self.from_env: () -> SsrfPolicy