abstract class Wafalyzer::Waf

Included Modules

Direct Known Subclasses

Defined in:

wafalyzer/waf.cr
wafalyzer/waf/dsl.cr
wafalyzer/waf/matcher.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Class Method Summary

Instance Method Summary

Constructor methods inherited from module Wafalyzer::Waf::DSL

new new

Instance methods inherited from module Wafalyzer::Waf::Matcher

matches?(response : HTTP::Client::Response) : Bool matches?

Constructor Detail

def self.find(klass : Waf.class) : Waf #

[View source]
def self.new(product : String) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.detect(response : HTTP::Client::Response) : Array(Waf) #

Returns an array of Waf profiles matching the given response.


[View source]
def self.find?(klass : Waf.class) : Waf | Nil #

[View source]
def self.instances #

Array of loaded Waf profiles


[View source]
def self.instances=(instances : Hash(::Wafalyzer::Waf.class, Wafalyzer::Waf)) #

Array of loaded Waf profiles


[View source]

Instance Method Detail

def clone #

Returns a copy of self with all instance variables cloned.


[View source]
def product : String #

Full name of the WAF solution being defined


[View source]
def to_json(json : JSON::Builder) #

[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]