mirror of
https://github.com/kataras/iris.git
synced 2026-05-14 18:13:49 +00:00
Release version 12.2.0-beta2
This commit is contained in:
@@ -143,6 +143,11 @@ func (w *ResponseRecorder) ClearHeaders() {
|
||||
// Reset clears headers, sets the status code to 200
|
||||
// and clears the cached body.
|
||||
//
|
||||
// - Use ResetBody() and ResetHeaders() instead to keep compression after reseting.
|
||||
//
|
||||
// - Use Reset() & ResponseRecorder.ResponseWriter.(*context.CompressResponseWriter).Disabled = true
|
||||
// to set a new body without compression when the previous handler was iris.Compression.
|
||||
//
|
||||
// Implements the `ResponseWriterReseter`.
|
||||
func (w *ResponseRecorder) Reset() bool {
|
||||
w.ClearHeaders()
|
||||
|
||||
Reference in New Issue
Block a user