github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+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 Error error 11 } 12 13 func (repo *OldFakeCurlRepository) Request(method, path, header, body string) (resHeaders, resBody string, apiErr error) { 14 repo.Method = method 15 repo.Path = path 16 repo.Header = header 17 repo.Body = body 18 19 resHeaders = repo.ResponseHeader 20 resBody = repo.ResponseBody 21 apiErr = repo.Error 22 return 23 }