summaryrefslogtreecommitdiff
path: root/lib/chef/rest.rb
Commit message (Collapse)AuthorAgeFilesLines
* autofixing whitespace copsLamont Granquist2016-02-051-7/+5
| | | | | | | | | | | | | | | | | | | | | | 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-4/+4
| | | 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"
* add deprecation warningsThom May2016-01-181-0/+2
|
* Use double quotes by defaultThom May2016-01-141-12/+12
| | | | | | | 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.
* Unnecessary capitalizationTim Smith2015-10-181-1/+1
|
* Added versioned Chef Object API support code and repaired Chef::User.create.tylercloke2015-06-051-0/+1
| | | | Also added Chef::User.create V1 API support. Chef::User.create will attempt to use V1 of the server API, and if it fails, it will fall back to V0.
* Extract socketless client and add specsdanielsdeleo2015-04-011-145/+0
|
* Extract Chef Zero code out to chef zero, re-enable socket listeningdanielsdeleo2015-04-011-26/+4
|
* Hoist socketless chef-zero support into Chef::HTTPdanielsdeleo2015-04-011-33/+1
| | | | | | Was hoping to avoid this, but there are multiple subclasses of Chef::HTTP that interact with the server, which all must support socketless mode.
* Initial socketless local modedanielsdeleo2015-04-011-1/+199
|
* CHEF-5100:Lamont Granquist2014-03-271-0/+4
| | | | | | - Enable Content Validation Check for Chef::HTTP::Simple - Tidy up debug logs / comments - More specs.
* CHEF-5041: fix middleware orderLamont Granquist2014-03-271-1/+1
| | | | | | - the middleware for the *responses* are applied in reverse order, so that the ValidateContentLength middleware must come *AFTER* the Decompressor when we initialize them.
* ensure Chef::REST does not modify options in-placeJoseph Anthony Pasquale Holsten2014-02-251-0/+1
|
* - Adding X-Remote-Request-Id to the set of headers for every request from ↵PrajaktaPurohit2014-02-071-1/+5
| | | | | | | | | | CCR and knife that will be sent to erchef - Each knife request has a different X-Remote-Request-Id, where as it remains the same for all requests originating from the same chef-client run. - Adding and fixing tests
* rename ValidateResponse to ValidateContentLengthLamont Granquist2014-01-271-2/+2
|
* adding validation of content-length fieldLamont Granquist2014-01-231-0/+2
|
* add a doc comment on the purpose of raw_http_requestjamesc2013-11-201-0/+3
|
* raw_http_request was aliased to send_http_request, which is below thejamesc2013-11-171-3/+15
| | | | | | | level of the middleware being applied. This patch makes raw_http_request behave like request, except the only middleware that is applied is the AuthN for talking to the chef server
* REST#raw_http_request needs to be public for legacy usedanielsdeleo2013-10-231-0/+2
|
* Use API SSL policy w/ Chef::RESTdanielsdeleo2013-10-161-0/+5
|
* Use new Chef::ServerAPI API class in upload/download/diffJohn Keiser2013-10-091-4/+6
|
* CHEF-4515: upload sometimes inflates JSON. Fix by using true raw version of ↵John Keiser2013-10-091-7/+5
| | | | Chef::REST
* Fix Chef::HTTP dependence on subclass methodsdanielsdeleo2013-10-081-1/+1
|
* Move streaming requests to generic HTTP classdanielsdeleo2013-10-081-91/+7
|
* Express stream handling via middlewaresdanielsdeleo2013-10-081-2/+20
| | | | | | | | (This is an intermediate commit for review-ability purposes). Streaming downloads to files is core functionality that needs to go in the base HTTP class, so remove special casing from middlewares for decompressing responses.
* remove duplicate method from subclassdanielsdeleo2013-10-081-8/+0
|
* Refactor HTTP streaming to reuse base implementationsdanielsdeleo2013-10-081-30/+22
|
* Remove leftover methods from subclassdanielsdeleo2013-10-081-9/+0
|
* HTTP client creates request objects.danielsdeleo2013-10-081-0/+19
| | | | | | | 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.
* Remove references to authenticator from base HTTP classdanielsdeleo2013-10-081-0/+8
|
* Extract HTTP cookie handling to middlewaredanielsdeleo2013-10-081-1/+3
|
* Move HTTP components into chef/httpdanielsdeleo2013-10-081-7/+9
|
* Extract good parts of REST to HTTP base classdanielsdeleo2013-10-081-176/+18
|
* DRY middleware applicationdanielsdeleo2013-10-081-6/+18
|
* Add authentication and GZIP headers back to streaming requestsdanielsdeleo2013-10-081-7/+13
|
* move http authenticator to its own filedanielsdeleo2013-10-081-64/+5
|
* Extract HTTP authentication to a classdanielsdeleo2013-10-081-38/+82
|
* move decompressor and model inflator to their own filesdanielsdeleo2013-10-081-127/+13
|
* extract HTTP response compression to a classdanielsdeleo2013-10-081-68/+103
|
* Move error message parsing to JSON componentdanielsdeleo2013-10-081-53/+47
|
* Extract JSON content type handling to a classdanielsdeleo2013-10-081-16/+45
|
* Normalize whitespace on all filesSeth Vargo2013-09-261-1/+1
|
* Merge branch 'master' into file-refactorsersut2013-05-311-1/+0
|\ | | | | | | | | Conflicts: lib/chef/exceptions.rb
| * CHEF-3535: Do not need all of chef/platformBryan McLellan2013-05-241-1/+0
| | | | | | | | | | We only needed #windows? for CHEF-3535, which is now in chef/platform/query_helpers.rb from 3b373784 due to CHEF-4157/CHEF-4153.
| * require 'chef/platform' from lib/chef/rest.rbPhil Dibowitz2013-05-241-1/+1
| |
* | Remove binmode property from file / remote_directory resources and always ↵sersut2013-05-301-1/+1
| | | | | | | | operate in binmode.
* | Merge branch 'master' into file-refactorsersut2013-05-141-1/+1
|\ \ | |/ | | | | | | | | Conflicts: spec/unit/knife/configure_spec.rb spec/unit/provider/remote_file_spec.rb
| * [CHEF-4157] split Platform to prune dep graphdanielsdeleo2013-05-031-1/+1
| | | | | | | | | | | | | | Many files/classes depend on Chef::Platform just to use the `windows?` method. The part of Chef::Platform that maps providers to platforms has very heavy dependencies (which may trigger circular deps when loading some files) which are not needed for most users of Chef::Platform.