Skip to main content

Module http_mock

Module http_mock 

Source
Available on crate feature http only.
Expand description

Mock HTTP client for tests (http_mock::RestClientMock). Mock HTTP client for tests — Rhai-compatible drop-in for crate::http::RestClient.

Configure expected path/methodreturn_obj mappings and register via httpmock_rhai_register instead of crate::http::http_rhai_register.

Structs§

HttpMockItem
RestClientMock
In-memory mock that answers get/post/… from a pre-configured list. See module docs.

Enums§

HttpMethod

Functions§

httpmock_rhai_register