oRPC Response Headers Plugin
Installation
SKILL.md
Response Headers Plugin
Injects a resHeaders instance into the context, enabling you to modify response headers.
Context Setup
import { setCookie } from '@orpc/server/helpers'
import { ResponseHeadersPluginContext } from '@orpc/server/plugins'
interface ORPCContext extends ResponseHeadersPluginContext {}
const base = os.$context<ORPCContext>()