GetAll returns all stored values for the request as a map. Nil is returned for invalid requests.
(r *http.Request)
| 49 | |
| 50 | // GetAll returns all stored values for the request as a map. Nil is returned for invalid requests. |
| 51 | func GetAll(r *http.Request) map[interface{}]interface{} { |
| 52 | mutex.RLock() |
| 53 | if context, ok := data[r]; ok { |
| 54 | result := make(map[interface{}]interface{}, len(context)) |
| 55 | for k, v := range context { |
| 56 | result[k] = v |
| 57 | } |
| 58 | mutex.RUnlock() |
| 59 | return result |
| 60 | } |
| 61 | mutex.RUnlock() |
| 62 | return nil |
| 63 | } |
| 64 | |
| 65 | // GetAllOk returns all stored values for the request as a map and a boolean value that indicates if |
| 66 | // the request was registered. |
no outgoing calls
searching dependent graphs…