1602 / 1602/compound

custom respondToformat

未關閉
#584 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
1.6k
分支
179
PR 合併指標
30 天內沒有已合併 PR

描述

I wanted to add custom respondto format for handling msgpack requests. I thought I could write

c.respondTo (format) ->
format.msgpack ->
c.send buffer.toJSON()

The above code didn't work. Is there any support for responding to custom formats?

Thanks
-Kesav

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Look at the respondTo method in the compound framework's source code, likely in a controller or response handling module. Understand how existing formats like JSON or HTML are registered and dispatched. Adding a new format involves extending the format registry and defining the serialization logic. Test by creating a controller action that uses the new msgpack format.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, node.js
領域
api, backend
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。