Timber v3.1.2 Timber.HTTPClients.Fake View Source

Provides a fake HTTP client for testing

Link to this section Summary

Functions

Callback implementation for c:Timber.HTTPClient.async_request/4

Callback implementation for c:Timber.HTTPClient.handle_async_response/2

Callback implementation for c:Timber.HTTPClient.request/4

Callback implementation for c:Timber.HTTPClient.wait_on_response/2

Link to this section Functions

Link to this function

async_request(method, url, headers, body) View Source

Callback implementation for c:Timber.HTTPClient.async_request/4.

Link to this function

get_async_request_calls() View Source

Link to this function

get_function_calls(name) View Source

Link to this function

handle_async_response(ref, msg) View Source

Callback implementation for c:Timber.HTTPClient.handle_async_response/2.

Link to this function

request(method, url, headers, body) View Source

Callback implementation for c:Timber.HTTPClient.request/4.

Link to this function

wait_on_response(ref, timeout) View Source

Callback implementation for c:Timber.HTTPClient.wait_on_response/2.