(func)
| 819 | } |
| 820 | |
| 821 | function setGenReqId (func) { |
| 822 | throwIfAlreadyStarted('Cannot call "setGenReqId"!') |
| 823 | |
| 824 | this[kGenReqId] = reqIdGenFactory(this[kOptions].requestIdHeader, func) |
| 825 | return this |
| 826 | } |
| 827 | |
| 828 | function addHttpMethod (method, { hasBody = false } = {}) { |
| 829 | if (typeof method !== 'string' || http.METHODS.indexOf(method) === -1) { |
nothing calls this directly
no test coverage detected