Rendered field exported to support rendered requests on Do function. Data races fixed.

This commit is contained in:
Musab Gültekin
2019-06-14 15:23:56 +03:00
parent 1a7d480b36
commit 6caf1effd6
8 changed files with 47 additions and 68 deletions

View File

@ -4,10 +4,9 @@ import (
"net/http"
)
// Request is a small wrapper around *http.Request that contains Metadata
// Request is a small wrapper around *http.Request that contains Metadata and Rendering option
type Request struct {
*http.Request
Meta map[string]interface{}
rendered bool
Meta map[string]interface{}
Rendered bool
}