summaryrefslogtreecommitdiff
path: root/lib/chef/http/basic_client.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update config specSalim Alam2016-03-211-0/+1
|
* Override no_proxy with internal matcherSalim Alam2016-03-211-1/+6
|
* - Restore previous behavior where we use the user/pass from the URI, if present.nls/proxy-cleanupChris Doherty2016-03-171-3/+11
| | | | - s/ChefConfig::Config.proxy_uri/Chef::Config.proxy_uri/
* Make handling of proxies more consistentNathan L Smith2016-03-171-39/+5
| | | | | | | | | | * Always use `*_proxy` environment variables. * Make a `ChefConfig::Config.proxy_uri` method that gets used by `Chef::Provider::RemoteFile::FTP` and `Chef::HTTP::BasicClient`. * Remove `env` method from `Chef::HTTP::BasicClient` (using `stub_const("ENV", ...)` in specs instead.) * Remove `http_proxy_user` and `http_proxy_pass` methods from `Chef::HTTP::BasicClient` (replaced by functionality in `ChefConfig`.)
* Autofixing new Perf cops in 0.37.2Lamont Granquist2016-02-231-1/+1
| | | | | | | | | | 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement
* convert MultilineOperationIndentation style to "indented"Lamont Granquist2016-02-121-1/+1
| | | | this looks nicer.
* autofixing whitespace copsLamont Granquist2016-02-051-8/+8
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-5/+5
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-141-6/+6
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Check if proxy env_var is emptyJon Morrow2015-05-061-6/+10
| | | We need to check if the env variable is set to empty string. If we don't we can get in an edge case where we blow up trying to call URI.parse.
* Fixes 2140 - Honor Proxy from EnvJon Morrow2015-04-141-4/+21
| | | | | | | | | This change adds support to Chef's core http libs to honor a proxy uri set in the environment not just chef/knife config. It also adds support for username and password both in uri and env. The order of precidence for values is uri, config, env.
* Print out request and response body on non-2xx responsejk/http-error-logJohn Keiser2014-09-071-0/+14
|
* Add url scheme to proxy, if not present.Claire McQuin2014-07-091-1/+7
|
* added open_timeout to http connectionCam Cope2014-06-051-0/+1
|
* CHEF-5198: a better fixLamont Granquist2014-04-091-0/+9
| | | | | | | | - reverts previous fix to CHEF-5198 - applies stream handler middleware in (proper) reverse order - adds debugging around middleware application - moves dumping of response header debugging to before applying response/streaming middleware
* Update HTTP usage for IPv6 Supportdanielsdeleo2013-11-151-1/+1
| | | | | | | | | | | | * Fixes Chef::HTTP related code to use URI::Generic#hostname when initializing Net::HTTP objects. * Replace RestClient usage in cookbook uploader with Chef::HTTP::Simple; RestClient has the same bug as is fixed in the Chef::HTTP code (and is difficult to fix with a monkey patch). See: https://github.com/rest-client/rest-client/blob/0919b02cc57447cf42a67e31aad87ab2a6929da3/lib/restclient/request.rb#L150 * Manually verified with chef-zero; chef-zero's test helper code does not expose the `:host` parameter so it cannot be used to bind the server to ::1. Integration tests will be added once this is solved.
* Debug request headersdanielsdeleo2013-10-281-0/+4
|
* Add a directory where trusted certs can be storeddanielsdeleo2013-10-171-0/+3
|
* Extract SSL policy to a DI-able classdanielsdeleo2013-10-161-30/+10
|
* Return the response body by default if we've read itdanielsdeleo2013-10-161-0/+1
| | | | | Otherwise clients like HTTP::Simple don't return anything at all from http requests
* HTTP client creates request objects.danielsdeleo2013-10-081-39/+60
| | | | | | | Changes the structure of HTTP requests so that we create an HTTP client object and then ask it to make requests. This allows for easier customization of the HTTP client object, in particular enabling use to make use of persistent connections.
* Extract HTTP client from requestdanielsdeleo2013-10-081-0/+109
This allows us to change the top level HTTP client, e.g., to Net::HTTP::Persistent