Class: Intrigue::Ident::Check::Restlet

Inherits:
Base
  • Object
show all
Defined in:
lib/checks/restlet.rb

Instance Method Summary collapse

Methods inherited from Base

inherited

Instance Method Details

#generate_checks(url) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/checks/restlet.rb', line 6

def generate_checks(url)
  [
    {
      :type => "application",
      :vendor =>"Restlet",
      :product =>"Restlet",
      :match_details =>"server header for Restlet",
      :references => ["http://restlet.com/company/blog/2016/02/03/api-testing-testing-web-apis-using-dhc-by-restlet/"],
      :match_type => :content_headers,
      :match_content =>  /server: Restlet-Framework/i,
      :dynamic_version => lambda { |x|
        _first_header_capture(x,/server: Restlet-Framework\/(.*)/i)
      },
      :examples => ["http://128.109.13.60:80"],
      :paths => ["#{url}"]
    }
  ]
end