/Knowledge/sources/honojs__hono/llms-full/testing-helper-testclient--part-04--8c77641858e3.md
Testing Helper: testClient() (part 04) - hono-docs
Testing Helper: testClient() (part 04) Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt testclient Summ...
Testing Helper: testClient() (part 04)
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#testclient
Summary
To include headers in your test, pass them as the second parameter in the call. The second parameter can also take an init property as a RequestInit object, allowing you to set headers, method, body, etc. Learn more about the init...
Content
To include headers in your test, pass them as the second parameter in the call. The second parameter can also take an init property as a RequestInit object, allowing you to set headers, method, body, etc. Learn more about the init property here.
Metadata
{
"chunk_index": 3,
"citation": "https://hono.dev/llms-full.txt#testclient",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Testing Helper > `testClient()` (4)",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 692,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Testing Helper: testClient() (part 04)",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}