From 56e44a759e9f963dbeeb338a3c8c2064a405b50f Mon Sep 17 00:00:00 2001 From: Chase Hutchins Date: Sun, 13 Sep 2015 01:22:19 -0700 Subject: [PATCH] adding response.committed getter --- response.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/response.go b/response.go index 715df158..7e03aba7 100644 --- a/response.go +++ b/response.go @@ -74,6 +74,10 @@ func (r *Response) Size() int64 { return r.size } +func (r *Response) Committed() bool { + return r.committed +} + func (r *Response) reset(w http.ResponseWriter) { r.writer = w r.size = 0