Allow ssl option specification for httpjson plugin

closes #769
This commit is contained in:
Cameron Sparr
2016-03-01 17:13:26 +00:00
parent 74aaf4f75b
commit b2a4d4a018
3 changed files with 54 additions and 6 deletions

View File

@@ -147,6 +147,13 @@ func (c mockHTTPClient) MakeRequest(req *http.Request) (*http.Response, error) {
return &resp, nil
}
func (c mockHTTPClient) SetHTTPClient(_ *http.Client) {
}
func (c mockHTTPClient) HTTPClient() *http.Client {
return nil
}
// Generates a pointer to an HttpJson object that uses a mock HTTP client.
// Parameters:
// response : Body of the response that the mock HTTP client should return