View definition

(Response).ContentLength

Defined in github.com/emicklei/go-restful/response.go

Description

ContentLength returns the number of bytes written for the response content. Note that this value is only correct if all data is written through the Response using its Write* methods. Data written directly using the underlying http.ResponseWriter is not accounted for.