github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+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 }