class WebMock::Stub
- WebMock::Stub
- Reference
- Object
Defined in:
webmock/stub.crConstructors
Instance Method Summary
- #calls : Int32
- #exec(request)
- #matches?(request)
- #matches_body?(request)
- #matches_headers?(request)
- #matches_host?(request)
- #matches_method?(request)
- #matches_path?(request)
- #matches_scheme?(request)
- #to_return(body : String = "", status : Int32 = 200, headers = nil)
- #to_return(&block : HTTP::Request -> HTTP::Client::Response)
- #with(query : Hash(String, String) | Nil = nil, body : String | Nil = nil, headers = nil)