class WebMock::Stub

Defined in:

webmock/stub.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(method : Symbol | String, uri) #

[View source]

Instance Method Detail

def calls : Int32 #

[View source]
def exec #

[View source]
def matches?(request) #

[View source]
def matches_body?(request) #

[View source]
def matches_headers?(request) #

[View source]
def matches_host?(request) #

[View source]
def matches_method?(request) #

[View source]
def matches_path?(request) #

[View source]
def matches_scheme?(request) #

[View source]
def to_return(body : String = "", status : Int32 = 200, headers = nil) #

[View source]
def with(query : Hash(String, String) = nil, body : String = nil, headers = nil) #

[View source]