Agent / foldkit-agent-mcp

HttpRequest

interface · packages/agent-mcp/src/http.ts:15

interface HttpRequest {
  readonly method: string
  readonly headers: Readonly<Record<string, string | undefined>>
  readonly body?: unknown
}

A transport-neutral request, so this can sit behind any HTTP server.

Members

HttpRequest.method

property · packages/agent-mcp/src/http.ts:16

readonly method: string

HttpRequest.headers

property · packages/agent-mcp/src/http.ts:18

readonly headers: Readonly<Record<string, string | undefined>>

Header names lowercased.

HttpRequest.body

property · packages/agent-mcp/src/http.ts:20

readonly body?: unknown

The parsed JSON body, for POST, or UNPARSEABLE_BODY if it was not JSON.