github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/api/apifakes/old_fake_curl_repo.go (about) 1 package apifakes 2 3 type OldFakeCurlRepository struct { 4 Method string 5 Path string 6 Header string 7 Body string 8 ResponseHeader string 9 ResponseBody string 10 FailOnHTTPError bool 11 Error error 12 } 13 14 func (repo *OldFakeCurlRepository) Request(method, path, header, body string, failOnHTTPError bool) (resHeaders, resBody string, apiErr error) { 15 repo.Method = method 16 repo.Path = path 17 repo.Header = header 18 repo.Body = body 19 repo.FailOnHTTPError = failOnHTTPError 20 21 resHeaders = repo.ResponseHeader 22 resBody = repo.ResponseBody 23 apiErr = repo.Error 24 return 25 }