1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-26 19:15:10 +01:00

184 Commits

Author SHA1 Message Date
Michael Dowling
9150653a95 Adding getModels() to ServiceDescriptionInterface 2013-01-12 20:28:43 -08:00
Michael Dowling
0688c9c598 PHP-CS-Fixer 2013-01-12 13:43:21 -08:00
Michael Dowling
45618b963a Adding a getData method to a service builder to retrieve builder data 2013-01-12 13:40:01 -08:00
Michael Dowling
3b3d622e93 Filtering additionalProperties and array items 2013-01-11 21:47:58 -08:00
Michael Dowling
b2dbb49040 Merge remote-tracking branch 'elgris/master' 2013-01-11 21:45:10 -08:00
Michael Dowling
fb4d7473d5 Cleaning up filtering 2013-01-11 18:11:35 -08:00
Ivan Kirichenko
a91d66b797 Commit aim: perform filtration of command parameters without changing of command's parameters values.
Changes:
- Validation without filtration added
- Tests for this functionality added

- Extra lines and spaces removed
2013-01-11 13:19:31 +04:00
Michael Dowling
625cc42b75 Cleaning up the XML serializer
Closes #182
2013-01-09 22:30:31 -08:00
Michael Dowling
06d04ea562 Making service descriptions a bit more flexible
Adding extra data into descriptions when using factory
Adding getData to the ServiceDescriptionInterface
2013-01-09 16:40:11 -08:00
Michael Dowling
10cad60cf1 Moving getPath() from Guzzle\Service\Resource to Guzzle\Common\Collection 2013-01-08 23:10:57 -08:00
Michael Dowling
74176d3415 Easier exception thrown when sending commands in parallel
Adding CommandTransferException
Cleaning up Exceptions thrown from multi transfer
Closes #197
2012-12-30 14:05:06 -08:00
Michael Dowling
3eb19b745b Adding a response_body location to service descriptions to more easily change the location in which a response entity body is saved 2012-12-10 18:35:58 -08:00
Michael Dowling
c3a9ce0be6 Adding setErrorResponses() to Operation 2012-12-06 17:20:23 -08:00
Michael Dowling
3a428eef7e Cleaning up XML repsonse processing. Making sure XMLAttribute test tests against actual XML 2012-11-17 16:17:09 -08:00
Michael Dowling
15e909b0ed Merge remote-tracking branch 'dboune/feature/xml-attributes' 2012-11-17 15:54:04 -08:00
Adrien Brault
e9a5f92d14 Fix DefaultRequestSerializer with array params 2012-11-16 16:29:45 +01:00
Damian Boune
c638b33883 Add test for attribute support in xml responses 2012-11-14 23:39:11 -08:00
Michael Dowling
c6720a062b Adding json and xml methods to Response object for easy response parsing
Moved json and XML parsing out of DefaultResponseParser and using Response parsing
Removed parseJson method from DefaultResponseParser
Removed Guzzle\Service\Exception\JsonException
2012-11-11 00:34:43 -08:00
Pascal Borreli
c309f229ff Fixed typos 2012-11-03 00:09:36 +00:00
Michael Dowling
e7c553030a Adding PECL URI template parser
Keeping BC compatibility, but making ParserRegistry as singleton
Using the PECL URI template parser if the extension is loaded
2012-10-28 21:08:38 -07:00
Michael Dowling
e74cf3ce3e Enabling magic methods by default. Magic methods return result not command. 2012-10-24 20:23:10 -07:00
Adrien Brault
e255685f78 Fix wrong uri construction with unset command parameters 2012-10-24 18:23:53 +02:00
Michael Dowling
412402a3d9 Clients do not require base_url in factory 2012-10-23 21:24:09 -07:00
Michael Dowling
70f40637fc Allowing models to be used more like Collections. Fixing bug where 0 value keys were ignored 2012-10-22 11:10:37 -07:00
Michael Dowling
ef7fe4f862 Adding a custom AppendIterator to account for PHP bug 2012-10-18 12:37:23 -07:00
Michael Dowling
987d5396d9 Fixing broken test after removing url encoding 2012-10-15 16:48:14 -07:00
Michael Dowling
b9e63ad028 Fixing a couple bugs introduced when refactoring response parsing 2012-10-15 16:38:40 -07:00
Michael Dowling
522d3b5688 Cleaning up and future-proofing response parsing 2012-10-15 16:38:40 -07:00
Michael Dowling
424905cebf Cleaning up XML visitors
Adding filters to body response
Moving prefix header maps into a container element for outputs
Setting a default false value for missing booleans
2012-10-15 16:38:40 -07:00
Michael Dowling
ed3627f1d9 Adding an option to change the entity body used to store the response body of a command 2012-10-15 16:38:40 -07:00
Michael Dowling
7dd29e0a37 Adding better namespace support to XML serializer. Adding a boolean-string schema format 2012-10-15 16:38:40 -07:00
Michael Dowling
206ecb13c8 Adding format attribute to service description parameters 2012-10-15 16:38:40 -07:00
Michael Dowling
e168692401 Cleaning up XML visitors and tuning descriptions
XML visitors now have data attributes with an xml prefix.
Default arrays are inserted into response models when the value is not
set
Response values are automatically converted to booleans parsing models
Any parameter option can now be retrieved by using getData()
2012-10-15 16:38:40 -07:00
Michael Dowling
a6be53b737 [Service] Adding support for flat XML arrays 2012-10-15 16:38:39 -07:00
Michael Dowling
7c9ce23ee3 Adding Content-Encoding header to outbound requests when a body location sees a Content-Encoding value specified on an EntityBody 2012-10-15 16:38:39 -07:00
Michael Dowling
36a1c7c150 Adding support for mapped headers in input and output. Removing ArrayAccess support from SchemaValidator and instead using a ToArrayInterface to convert objects to arrays. 2012-10-15 16:38:39 -07:00
Michael Dowling
b4a9ab6f91 Renaming the rename attribute of inputs and outputs to sentAs
- sentAs represents how the data is named over the wire
- name represents how the data is represented in the input and output hash
Fixing nested renaming of XML response marshaling
2012-10-15 16:38:39 -07:00
Michael Dowling
2672b96685 Fixing the merging of global default command parameters with explicitly specified command parameters 2012-10-15 16:38:38 -07:00
Michael Dowling
1306806aed Removing model_array response processing. Fixing a bug where resolving classes with extended services would not pick up extended classes in the correct order. 2012-10-15 16:38:38 -07:00
Michael Dowling
84d0722d7c Adding rename support to XML responses. Adding flat array support to XML responses. 2012-10-15 16:38:38 -07:00
Michael Dowling
e3c3684b8a Adding much more control around the expect header. Only sending the expect header by default when the size of the body exceeds 1MB or the body is not seekable. 2012-10-15 16:38:38 -07:00
Michael Dowling
a7100ac0a9 Changing the expect data value of body locations to expect_header.
Allowing native response overrides when using a model based operation response parser.
Moving the responsibility of dispatching the command.before_prepare event from the client to the command.
More options to the expect_header option and assuming the cutoff to be 1MB
2012-10-15 16:38:37 -07:00
Michael Dowling
81542a8fc6 Adding command.expects to commands to inject a Content-Type into responses manually. Adding more control of the Expect header to entity bodies using the expect data parameter of the body location. 2012-10-15 16:38:37 -07:00
Michael Dowling
84a48e7987 Cleaning up special options and how response processing is tuned on commands 2012-10-15 16:38:37 -07:00
Clay Loveless
38019b9131 Use Mozilla's CA bundle by default for SSL requests, and allow SSL configuration flexibility
PSR-2 fixes
2012-10-15 16:38:37 -07:00
Michael Dowling
0f57d6ac22 [Service] Adding Model classes that can be used to make it easier to consume the models generated by service description powered OperationCommands. 2012-10-15 16:38:37 -07:00
Michael Dowling
b4122aeed7 Adding baseUrl to service descriptions 2012-10-15 16:38:36 -07:00
Michael Dowling
bd5727da5f Using Iterator and Model as the default directories to look for iterators. Adding a MapResourceIteratorFactory. Adding fix for XML response parser. 2012-10-15 16:38:36 -07:00
Michael Dowling
b961ecbfa4 Adding name attribute to parameters that are a child of an array. Adding plugins to service builders. Adding the ability for the XML response parser to map collections into flattened arrays. 2012-10-15 16:38:36 -07:00
Michael Dowling
a87692c7dc Fixing missing values from service descriptions 2012-10-15 16:38:35 -07:00