ExVCR.Adapter.IBrowse (exvcr v0.17.1)

View Source

Provides adapter methods to mock :ibrowse methods.

Summary

Functions

Default definitions for stub.

Generate key for searching response.

Callback from ExVCR.Handler to get the response content tuple from the ExVCR.Response record.

Callback from ExVCR.Handler when response is retrieved from the json file cache.

Callback from ExVCR.Handler when response is retrieved from the HTTP server.

Returns the name of the mock target module.

Returns list of the mock target methods with function name and callback. Implementation for global mock.

Returns list of the mock target methods with function name and callback.

Functions

convert_from_string(string)

See ExVCR.Adapter.IBrowse.Converter.convert_from_string/1.

convert_to_string(request, response)

See ExVCR.Adapter.IBrowse.Converter.convert_to_string/2.

default_stub_params(atom)

Default definitions for stub.

generate_keys_for_request(request)

Generate key for searching response.

get_response_value_from_cache(response)

Callback from ExVCR.Handler to get the response content tuple from the ExVCR.Response record.

hook_response_from_cache(request, response)

Callback from ExVCR.Handler when response is retrieved from the json file cache.

hook_response_from_server(response)

Callback from ExVCR.Handler when response is retrieved from the HTTP server.

module_name()

Returns the name of the mock target module.

parse_request_body(request_body)

See ExVCR.Adapter.IBrowse.Converter.parse_request_body/1.

target_methods()

Returns list of the mock target methods with function name and callback. Implementation for global mock.

target_methods(recorder)

Returns list of the mock target methods with function name and callback.