Set adds an extra context field. Values are also used to resolve :key placeholders in URLs.
(key string, value interface{})
| 94 | |
| 95 | // Set adds an extra context field. Values are also used to resolve :key placeholders in URLs. |
| 96 | func (d *DryRunAPI) Set(key string, value interface{}) *DryRunAPI { |
| 97 | d.extra[key] = value |
| 98 | return d |
| 99 | } |
| 100 | |
| 101 | // resolveURL replaces :key placeholders in url with path-escaped values from extra. |
| 102 | func (d *DryRunAPI) resolveURL(rawURL string) string { |
no outgoing calls
no test coverage detected