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