github.com/rakutentech/cli@v6.12.5-0.20151006231303-24468b65536e+incompatible/cf/api/fakes/fake_curl_repo.go (about) 1 package fakes 2 3 type FakeCurlRepository 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 *FakeCurlRepository) 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 }