class SecTester::Target
- SecTester::Target
- Reference
- Object
Defined in:
sec_tester/target.crConstant Summary
-
ACCEPTED_METHODS =
{"GET", "PUT", "POST", "PATCH", "DELETE", "COPY", "HEAD", "OPTIONS", "LINK", "UNLINK", "PURGE", "LOCK", "UNLOCK", "PROPFIND", "VIEW"}
Constructors
- .new(method : String, url : String, headers : HTTP::Headers = HTTP::Headers.new, body : String = "", response_headers : HTTP::Headers = HTTP::Headers.new, response_body : String = "", response_status : Int32 = 200)
- .new(url : String)
Instance Method Summary
- #body : String
- #body=(body : String)
- #headers : HTTP::Headers
- #headers=(headers : HTTP::Headers)
- #method : String
- #method=(method : String)
- #response_body : String
- #response_body=(response_body : String)
- #response_headers : HTTP::Headers
- #response_headers=(response_headers : HTTP::Headers)
- #response_status : Int32
- #response_status=(response_status : Int32)
- #to_har : String
- #to_json
- #url : String
- #url=(url : String)
Constructor Detail
def self.new(method : String, url : String, headers : HTTP::Headers = HTTP::Headers.new, body : String = "", response_headers : HTTP::Headers = HTTP::Headers.new, response_body : String = "", response_status : Int32 = 200)
#