Module test_client

Module test_client 

Source
Expand description

Core test client for Spikard applications

This module provides a language-agnostic TestClient that can be wrapped by language bindings (PyO3, napi-rs, magnus) to provide Pythonic, JavaScripty, and Ruby-like APIs respectively.

The core client handles all HTTP method dispatch, query params, header management, body encoding (JSON, form-data, multipart), and response snapshot capture.

Structsยง

TestClient
Core test client for making HTTP requests to a Spikard application.