@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Type Alias AdcpPreTransport

    AdcpPreTransport: (
        req: IncomingMessage & { rawBody?: string },
        res: ServerResponse,
    ) => Promise<boolean>

    Shape of the preTransport function attached by createAdcpServer when signedRequests is configured. Returns true if the middleware has already sent a response (e.g., 401 on verification failure), false to continue into MCP dispatch.

    Type Declaration

      • (
            req: IncomingMessage & { rawBody?: string },
            res: ServerResponse,
        ): Promise<boolean>
      • Parameters

        • req: IncomingMessage & { rawBody?: string }
        • res: ServerResponse

        Returns Promise<boolean>