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

16 Commits

Author SHA1 Message Date
Jeremy Lindblom
33ad112c94 Added an emitter option to the Client 2014-04-17 07:26:16 -07:00
Michael Dowling
3472f1fb68 Renaming (g|s)etDefaultValue() to (g|s)etDefaultOption() 2014-03-24 19:44:55 -07:00
Michael Dowling
d3943ce1e3 Adding support for HTTP_PROXY and HTTPS_PROXY 2014-03-24 19:00:23 -07:00
Michael Dowling
d4e897936c Renaming getDefaults() to getDefaultValue() 2014-03-21 16:54:06 -07:00
Michael Dowling
b30ce5d514 Making clients more immutable
- Removing getConfig() and setConfig() from clients to avoid confusion around
  whether things like base_url, message_factory, etc should be able to be
  retrieved from getConfig() or modified using setConfig().
- Adding getDefaults() and setDefaultValue() to customize default request
  options of a client.
- Updating Url class to check if a scheme and host are set before adding
  ":" and "//". This allows empty Url (e.g., "") to be serialized as "".
- Removing dead code from Url class.
- Adding a functions.php function for get_path and set_path so that these
  functions can be used on regular PHP arrays. Collection now proxies to these
  functions when Collection::(get|set)Path() is called.
- Resolves #599.
2014-03-21 12:37:32 -07:00
Michael Dowling
4124f9019e Fixing two failing tests 2014-03-20 20:39:52 -07:00
Michael Dowling
85422b5bd5 Adding shims that emit deprecations for the really common event method names 2014-03-12 13:44:27 -07:00
Michael Dowling
0ebe576e97 Adding a test to ensure absolute URI templates can be used in clients 2014-03-07 14:30:06 -08:00
Michael Dowling
e32d850a99 Cleaning up the EventEmitter
- Changed GuzzleHttp\Event\SubscriberInterface::getSubscribedEvents from a
  static method to an instance method.
- Renamed addSubscriber to attach.
- Renamed removeSubscriber to detach.
2014-03-07 10:14:17 -08:00
Michael Dowling
565867bcf4 Wrapping all exceptions in the client->send() method and adding tests 2014-03-06 09:39:29 -08:00
Michael Dowling
7e5a93b51a Fixing malformed URL errors in HHVM 2014-03-02 13:10:33 -08:00
Michael Dowling
91c1f5bd6c Trying to fix various HHVM tests 2014-03-02 12:57:33 -08:00
Michael Dowling
205bea3753 Preventing double error event emission 2014-03-01 17:18:12 -08:00
Michael Dowling
7fcf225d0e Fixing dot segment removal, how absolute URLs are detected, the namespace used for functions.php, and how segments of a path are returned 2014-02-21 11:47:05 -08:00
Michael Dowling
2b779dccb3 Moving some things like query and url up a NS 2014-02-16 21:02:54 -08:00
Michael Dowling
89a8e2ede1 Using PSR-4 and moving namespace from Guzzle to GuzzleHttp
- Moving various namespaces up a level
- Updating docs
- Renaming EventSubscriberInterface to SubscriberInterface
2014-02-16 20:42:45 -08:00