(rawURI string)
| 441 | } |
| 442 | |
| 443 | func rawRequestTarget(rawURI string) string { |
| 444 | idx := strings.Index(rawURI, "://") |
| 445 | if idx < 0 { |
| 446 | return "/" |
| 447 | } |
| 448 | rest := rawURI[idx+3:] |
| 449 | slashIdx := strings.Index(rest, "/") |
| 450 | if slashIdx < 0 { |
| 451 | return "/" |
| 452 | } |
| 453 | target := rest[slashIdx:] |
| 454 | if target == "" { |
| 455 | return "/" |
| 456 | } |
| 457 | return target |
| 458 | } |
| 459 | |
| 460 | func captureBodySignature(r io.Reader) (int, string, error) { |
| 461 | hasher := fnv.New64a() |
no outgoing calls
no test coverage detected