1

1st approach

finally{
// here when i return response am getting proper output
context.Response.Body.Write();    
}

2nd approach

finally{
// here when i return response am notgetting the required body in client
context.Response.Body = new memorystream();    
}
fubo
  • 44,811
  • 17
  • 103
  • 137
  • At first approach you are return response directly. At second approach you are getting response by a memorystream from RAM, stack, queue etc. – Halil Sahin Mar 03 '20 at 06:50
  • 1
    Look This Link :-https://stackoverflow.com/questions/43403941/how-to-read-asp-net-core-response-body – Malakiya sanjay Mar 03 '20 at 07:01
  • i dont wanna read my response multiple times , i wanna use use either of the approach . But when i use memory stream am not getting the body and when i use write method am getting the proper body content – Srinivasan Raju Mar 03 '20 at 07:10

0 Answers0