custom respondToformat
未關閉
- 主要語言
- 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