MCPcopy Create free account
hub / github.com/Hanson/claude-client / createHTTPAdapter

Function createHTTPAdapter

src/feishu/handler.ts:330–336  ·  view source on GitHub ↗
(
  eventHandler: FeishuEventHandler,
  path: string = '/feishu/events'
)

Source from the content-addressed store, hash-verified

328 * 创建 HTTP 适配器 (用于 webhook 模式)
329 */
330export function createHTTPAdapter(
331 eventHandler: FeishuEventHandler,
332 path: string = '/feishu/events'
333): (req: unknown, res: unknown) => void {
334 // 使用 adaptDefault 创建 HTTP 请求处理器
335 return Lark.adaptDefault(path, eventHandler.getEventDispatcher(), { autoChallenge: true });
336}

Callers

nothing calls this directly

Calls 1

getEventDispatcherMethod · 0.80

Tested by

no test coverage detected