(options ...interface{})
| 225 | } |
| 226 | |
| 227 | func getHttpClient(options ...interface{}) http.Client { |
| 228 | timeout0 := time.Minute * 1 |
| 229 | if len(options) > 0 { |
| 230 | timeout0 = options[0].(time.Duration) |
| 231 | } |
| 232 | return http.Client{ |
| 233 | Timeout: timeout0, |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | // PostJSON performs a POST request with JSON on an internal HTTP API |
| 238 | func PostJSON( |
no outgoing calls
no test coverage detected