http.ResponseWriter. It records the response body, status code and headers that you can manipulate at any handler inside a route's handlers chain.
Context.Record()before send data.
ResponseRecordertype contains the standard Iris ResponseWriter methods plus the following methods.
Write/Writef/WriteStringto stream write and
SetBody/SetBodyStringto set body instead.
ctx.Nextin your main handlers, modify the Iris handlers execution rules as follows.