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 }
func setReqHop(req *http.Request, h int) { if req.Header == nil { req.Header = make(map[string]string) } req.Header["Vault-Hop"] = strconv.Itoa(h) }
func setOrigin(req *http.Request, id sys.Id) { if req.Header == nil { req.Header = make(map[string]string) } req.Header["Vault-Origin"] = id.Eye() }