()
| 75 | } |
| 76 | |
| 77 | func (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 | |
| 93 | func (j *JSRequest) UpdateHash() { |
| 94 | j.refHash = j.NewHash() |
no outgoing calls
no test coverage detected