ctx.body vs ctx.response.body #1871
              
                
                  
                  
                    Answered
                  
                  by
                    fedyk
                  
              
          
                  
                    
                      carlosmintfan
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         It seems I can set the body both using   | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            fedyk
          
      
      
        Apr 9, 2025 
      
    
    Replies: 1 comment
-
| 
         
  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        jonathanong
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
ctx.bodyis a shortcut for getting or settingctx.response.body. You can use the one that’s more convenient for you.