Exemplo n.º 1
0
func setReqVersion(req *http.Request) {
	if req.Header == nil {
		req.Header = make(map[string]string)
	}
	req.Header["Vault-Build"] = sys.Build
	req.Header["Vault-Proto"] = Version
}
Exemplo n.º 2
0
func setReqHop(req *http.Request, h int) {
	if req.Header == nil {
		req.Header = make(map[string]string)
	}
	req.Header["Vault-Hop"] = strconv.Itoa(h)
}
Exemplo n.º 3
0
func setOrigin(req *http.Request, id sys.Id) {
	if req.Header == nil {
		req.Header = make(map[string]string)
	}
	req.Header["Vault-Origin"] = id.Eye()
}