custom respondToformat
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.6k
- Forks
- 179
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js
- Área
- api, backend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100