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, uri)
- #matches_method?(request)
- #matches_path?(request, uri)
- #matches_scheme?(request, uri)
- #matches_uri?(request)
- #to_return(body : String | Nil = "", status : Int32 = 200, headers = nil)
- #to_return(body_io : IO, 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)