MCPcopy Index your code
hub / github.com/bettercap/bettercap / NewHash

Method NewHash

modules/http_proxy/http_proxy_js_request.go:77–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77func (j *JSRequest) NewHash() string {
78 hash := fmt.Sprintf("%s.%s.%s.%s.%s.%s.%s.%s.%s.%s",
79 j.Client["IP"],
80 j.Method,
81 j.Version,
82 j.Scheme,
83 j.Hostname,
84 j.Port,
85 j.Path,
86 j.Query,
87 j.ContentType,
88 j.Headers)
89 hash += "." + j.Body
90 return hash
91}
92
93func (j *JSRequest) UpdateHash() {
94 j.refHash = j.NewHash()

Callers 3

UpdateHashMethod · 0.95
WasModifiedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected