1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 02:22:57 +01:00

521 Commits

Author SHA1 Message Date
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
b6f286319e Default header glue should be a comma, not a semicolon. 2012-10-15 16:38:39 -07:00
Michael Dowling
cb187199f9 Moving the Md5Validator namespace to Md5. Adding a CommandContentMd5Plugin. 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
c7918d79ca Removing no longer used event from CurlMulti object 2012-10-15 16:38:38 -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
Michael Dowling
b1287ad737 Moving curl.blacklist to curl.option.blacklist 2012-10-15 16:38:37 -07:00
Michael Dowling
1f06daf71e Adding the ability to control the certificate authority using configuration options on the client 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
32080ea36d Adding a shortcut for retrieving a debug log plugin to output wire traces to stdout 2012-10-15 16:38:36 -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
dc91935cf6 No longer sending an Accept and Accept-Encoding header by default 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
Michael Dowling
4cf526336b Changing special options for clients. Adding global command options to service clients. 2012-10-15 16:38:35 -07:00
Michael Dowling
5ab8ab547d Adding previousResponse to responses for tracking redirects 2012-10-15 16:38:35 -07:00
Michael Dowling
a8836a1011 Explicitly setting curl SSL options rather than relying on the defaults (which do the same as the settings I added). Updating some docblocks 2012-10-15 16:38:35 -07:00
Michael Dowling
3622ed264e Perf tweaks. Lazy loading operations instead of parameters. Adding models to ServiceDescriptionLoader. Rearranging the order of attributes when dumping an operation. 2012-10-15 16:38:35 -07:00
Michael Dowling
bf35effe64 Magic methods return an unexecuted command object. Command objects can now be executed lazily by calling getResponse() or getResult() on an unexecuted command.
Removing unused uses
2012-10-15 16:38:35 -07:00
Michael Dowling
bb22c63987 Magic methods now execute the command and return the command 2012-10-15 16:38:35 -07:00
Michael Dowling
2658f3fe59 Adding a way to remove aliases from a config loader 2012-10-15 16:38:35 -07:00
Michael Dowling
e052a1d584 Replaced the old AbstractFactory classes with config loaders
Added the ability to add includes to arrays, JSON, and PHP files
2012-10-15 16:38:35 -07:00
Michael Dowling
f4ea933af7 Adding checks for services extending in a circular reference 2012-10-15 16:38:34 -07:00
Michael Dowling
766f2dd7ee Adding an XML response location visitor. Adding a getKey() method to Parameter as a way to more easily get rename ?: name 2012-10-15 16:38:34 -07:00
Michael Dowling
b45b78999e Removing default value support from Collection (just use a tertiary condition instead). Perf improvement to Collection::get() 2012-10-15 16:38:34 -07:00
Michael Dowling
c4c5c95028 Moving Cookie related classes from Guzzle\Http to Guzzle\Plugin\Cookie 2012-10-15 16:38:34 -07:00
Michael Dowling
a7ebc1a406 Adding the ability to disable request validation and customize how responses are processed
Moving validation from Parameter to AbstractCommand
Renaming JsonBodyVisitor to JsonVisitor
Renaming Processor to Validator
Adding min/maxLength, minimum/maximum, and min/maxItems to Parameter to support valida JSON schema
Optimizing schema validation
2012-10-15 16:38:33 -07:00
Michael Dowling
34dbece2d7 Optimizing schema validation 2012-10-15 16:38:33 -07:00
Michael Dowling
f0ce001726 Horrible optimizations to the JSON schema validation to limit the number of calls made when validating. Resulted in about a 35% speed improvement of a core feature that could potentially be called hundreds of times when sending complex requests. 2012-10-15 16:38:33 -07:00
Michael Dowling
2680137994 Adding responseType to be used in tandem with responseClass. Adding protective checks to not attempt to set undefined properties on service descriptions. 2012-10-15 16:38:33 -07:00
Michael Dowling
28b3dce0b6 Adding support for custom service description attributes through data properties 2012-10-15 16:38:33 -07:00
Michael Dowling
d4fa382f8b Adding the ability to cast integers to strings when a schema is meant to be a string (this can be disabled if needed). Adding comments and fixing an error message 2012-10-15 16:38:33 -07:00
Michael Dowling
cf0924471c Completely rethinking service descriptions
Getting rid of the Validation component and "Inspector"
Removing custom types from service descriptions
Using a JSON schema based approach to validation and normalization
Adding a lazy building of Parameters for Operaton objects
Using camel case for postFile and postFile
Adding models support to service descriptions
Adding support for $ref overwrites of models registered with ServiceDescriptions
Adding more meta information to service descriptions
Adding data property to operations
Adding service description property to operations. Adding an XML location used to serialize XML requests.
Restructuring how service description based command requests are serialized and how responses are parsed
Adding JSON response parsers
Adding the ability to skip recursive translations on JSON responses
2012-10-15 16:38:33 -07:00
Michael Dowling
465fc06506 Cleaning up docblocks 2012-10-15 16:38:32 -07:00
Michael Dowling
05e1fef820 Adding nested ApiParam support in structures. Removing XML builders.
- Adding nested parameter serialization support to json, query, and
  post_field locations.
- Removing XML builders and only using JSON/arrays.
- Removing dot notation for classes, filters, and types.
- Updating validation filters to allow callers to get the default option using a static method.
- Removing annotation support from commands and using a static method instead.
2012-10-15 16:38:32 -07:00
Michael Dowling
0141b24b04 Cleaning up backoff code and adding an additional test. Fixing bug that caused any ApiParam with a filter to be set to an empty string, which caused the parameter to be applied to a request 2012-10-15 16:37:51 -07:00