entry/entry.go
func (e *Entry) Reset(statusCode int, contentType string,
	body []byte, lifeChanger LifeChanger) {

	if e.response == nil {
		e.response = &Response{}
	}
	if statusCode > 0 {
		e.response.statusCode = statusCode
	}

	if contentType != "" {
		e.response.contentType = contentType
	}

	e.response.body = body
	// check if a given life changer provided
	// and if it does then execute the change life time
	if lifeChanger != nil {
		e.ChangeLifetime(lifeChanger)
	}
	e.expiresAt = time.Now().Add(e.life)
}
func (e *Entry) Reset(statusCode int, contentType string,
	body []byte, lifeChanger LifeChanger) {

	if e.response == nil {
		e.response = &Response{}
	}
	if statusCode > 0 {
		e.response.statusCode = statusCode
	}

	if contentType != "" {
		e.response.contentType = contentType
	}

	e.response.body = body
	// check if a given life changer provided
	// and if it does then execute the change life time
	if lifeChanger != nil {
		e.ChangeLifetime(lifeChanger)
	}
	e.expiresAt = time.Now().Add(e.life)
}
// Reset called each time the entry is expired
// and the handler calls this after the original handler executed
// to re-set the response with the new handler's content result