SetRequestor sets a requestor for this operation from an http.Request.
(r *http.Request)
| 214 | |
| 215 | // SetRequestor sets a requestor for this operation from an http.Request. |
| 216 | func (op *Operation) SetRequestor(r *http.Request) { |
| 217 | op.requestor = request.CreateRequestor(r) |
| 218 | } |
| 219 | |
| 220 | // IsSameRequestor compares the current request requestor to that stored (if any). |
| 221 | func (op *Operation) IsSameRequestor(r *http.Request) bool { |
no test coverage detected