NewResponseEncoder wraps the http.ResponseWriter and returns a reference to ResponseEncoder
(w http.ResponseWriter)
| 35 | |
| 36 | // NewResponseEncoder wraps the http.ResponseWriter and returns a reference to ResponseEncoder |
| 37 | func NewResponseEncoder(w http.ResponseWriter) *ResponseEncoder { |
| 38 | return &ResponseEncoder{w: w} |
| 39 | } |
| 40 | |
| 41 | // Encode serialize response and error to the corresponding json format and write then to the output buffer. |
| 42 | // |
no outgoing calls