/Knowledge/sources/honojs__hono/llms-full/rpc-init-option--b92d37b2d767.md

RPC: init option - hono-docs

RPC: init option Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt init option Summary You can pass the...

RPC: init option

Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#init-option

Summary

You can pass the fetch's RequestInit object to the request as the init option. Below is an example of aborting a Request. ```ts import { hc } from 'hono/client' const client = hc ('http://localhost:8787/') const abortController = new...

Content

You can pass the fetch's RequestInit object to the request as the init option. Below is an example of aborting a Request.

import { hc } from 'hono/client'

const client = hc<AppType>('http://localhost:8787/')

const abortController = new AbortController()
const res = await client.api.posts.$post(
  {
    json: {
      // Request body
    },
  },
  {
    // RequestInit object
    init: {
      signal: abortController.signal,
    },
  }
)

// ...

abortController.abort()

::: info A RequestInit object defined by init takes the highest priority. It could be used to overwrite things set by other options like body | method | headers. :::

Metadata

{
  "chunk_index": 0,
  "citation": "https://hono.dev/llms-full.txt#init-option",
  "coverage_role": "overview",
  "qualified_title": "Hono / llms-full / RPC > `init` option",
  "retrieved_at": "2026-07-02T05:51:01Z",
  "section_index": 57,
  "source_id": "/honojs/hono",
  "source_type": "llms_full",
  "target_label": "llms-full",
  "title": "RPC: init option",
  "upstream_url": "https://hono.dev/llms-full.txt",
  "version": "2026"
}
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Knowledge/sources/honojs__hono/llms-full/rpc-init-option--b92d37b2d767.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.