code: func (service *Service) EncodeResponse(ctx context.Context, v interface{}) error {
  	accept := ContextRequest(ctx).Header.Get("Accept")
  	return service.Encoder.Encode(v, ContextResponse(ctx), accept)
  }
docs: // EncodeResponse uses the HTTP encoder to marshal and write the response body based on the request
  // Accept header.