class SecTester::Target

Defined in:

sec_tester/target.cr

Constant Summary

ACCEPTED_METHODS = {"GET", "PUT", "POST", "PATCH", "DELETE", "COPY", "HEAD", "OPTIONS", "LINK", "UNLINK", "PURGE", "LOCK", "UNLOCK", "PROPFIND", "VIEW"}

Constructors

Instance Method Summary

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) #

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

[View source]

Instance Method Detail

def body : String #

[View source]
def body=(body : String) #

[View source]
def headers : HTTP::Headers #

[View source]
def headers=(headers : HTTP::Headers) #

[View source]
def method : String #

[View source]
def method=(method : String) #

[View source]
def response_body : String #

[View source]
def response_body=(response_body : String) #

[View source]
def response_headers : HTTP::Headers #

[View source]
def response_headers=(response_headers : HTTP::Headers) #

[View source]
def response_status : Int32 #

[View source]
def response_status=(response_status : Int32) #

[View source]
def to_har : String #

[View source]
def to_json #

[View source]
def url : String #

[View source]
def url=(url : String) #

[View source]