Lazy generates UUID string or return cached value if present
()
| 570 | |
| 571 | // Lazy generates UUID string or return cached value if present |
| 572 | func (rid *requestID) String() string { |
| 573 | if rid.value == "" { |
| 574 | if id, err := uuid.NewRandom(); err == nil { |
| 575 | rid.value = id.String() |
| 576 | } |
| 577 | } |
| 578 | return rid.value |
| 579 | } |
| 580 | |
| 581 | const ( |
| 582 | reqCookieReplPrefix = "http.request.cookie." |
no outgoing calls
no test coverage detected