Lines Matching refs:GuzzleHttp
17 - Class `GuzzleHttp\UriTemplate` is removed.
18 - Class `GuzzleHttp\Exception\SeekException` is removed.
19 - Classes `GuzzleHttp\Exception\BadResponseException`, `GuzzleHttp\Exception\ClientException`,
20 `GuzzleHttp\Exception\ServerException` can no longer be initialized with an empty
22 - Class `GuzzleHttp\Exception\ConnectException` now extends `GuzzleHttp\Exception\TransferException`
23 instead of `GuzzleHttp\Exception\RequestException`.
24 - Function `GuzzleHttp\Exception\ConnectException::getResponse()` is removed.
25 - Function `GuzzleHttp\Exception\ConnectException::hasResponse()` is removed.
26 - Constant `GuzzleHttp\ClientInterface::VERSION` is removed. Added `GuzzleHttp\ClientInterface::MAJ…
27 - Function `GuzzleHttp\Exception\RequestException::getResponseBodySummary` is removed.
28 Use `\GuzzleHttp\Psr7\get_message_body_summary` as an alternative.
29 - Function `GuzzleHttp\Cookie\CookieJar::getCookieValue` is removed.
34 …, and `deleteAsync` methods are now implemented as genuine methods on `GuzzleHttp\Client`, with st…
60 HTTP message interaction (e.g., `GuzzleHttp\Message\Request`) need to be
64 `GuzzleHttp\HandlerStack`).
66 - Removed `GuzzleHttp\BatchResults`
67 - Removed `GuzzleHttp\Collection`
68 - Removed `GuzzleHttp\HasDataTrait`
69 - Removed `GuzzleHttp\ToArrayInterface`
71 is now present in the `GuzzleHttp\Psr7` namespace provided by the
88 - `GuzzleHttp\Mimetypes` has been moved to a function in
89 `GuzzleHttp\Psr7\mimetype_from_extension` and
90 `GuzzleHttp\Psr7\mimetype_from_filename`.
91 - `GuzzleHttp\Query` and `GuzzleHttp\QueryParser` have been removed. Query
97 working with query strings easier: `GuzzleHttp\Psr7\parse_query` and
98 `GuzzleHttp\Psr7\build_query`.
103 and placed in the `GuzzleHttp\Handler` namespace. This significantly reduces
116 - `GuzzleHttp\Subscriber\Cookie` is now provided by
117 `GuzzleHttp\Middleware::cookies`
118 - `GuzzleHttp\Subscriber\HttpError` is now provided by
119 `GuzzleHttp\Middleware::httpError`
120 - `GuzzleHttp\Subscriber\History` is now provided by
121 `GuzzleHttp\Middleware::history`
122 - `GuzzleHttp\Subscriber\Mock` is now provided by
123 `GuzzleHttp\Handler\MockHandler`
124 - `GuzzleHttp\Subscriber\Prepare` is now provided by
125 `GuzzleHttp\PrepareBodyMiddleware`
126 - `GuzzleHttp\Subscriber\Redirect` is now provided by
127 `GuzzleHttp\RedirectMiddleware`
129 `GuzzleHttp\Psr7\Uri`) for URI support. `GuzzleHttp\Url` is now gone.
130 - Static functions in `GuzzleHttp\Utils` have been moved to namespaced
131 functions under the `GuzzleHttp` namespace. This requires either a Composer
133 - `GuzzleHttp\ClientInterface::getDefaultOption` has been renamed to
134 `GuzzleHttp\ClientInterface::getConfig`.
135 - `GuzzleHttp\ClientInterface::setDefaultOption` has been removed.
161 use GuzzleHttp\Event\BeforeEvent;
162 $client = new GuzzleHttp\Client();
178 use GuzzleHttp\Middleware;
180 $handler = GuzzleHttp\HandlerStack::create();
187 $client = new GuzzleHttp\Client(['handler' => $handler]);
199 `GuzzleHttp\Post\PostFile` has been removed. Use the `multipart` option to add
213 HTTP requests. The `adapter` option in a `GuzzleHttp\Client` constructor
215 passing a `GuzzleHttp\Adapter\AdapterInterface`, you must now pass a PHP
223 - `GuzzleHttp\Collection`
224 - `GuzzleHttp\Url`
225 - `GuzzleHttp\Query`
226 - `GuzzleHttp\Post\PostBody`
227 - `GuzzleHttp\Cookie\SetCookie`
234 - `GuzzleHttp\json_decode` -> `GuzzleHttp\Utils::jsonDecode`
235 - `GuzzleHttp\get_path` -> `GuzzleHttp\Utils::getPath`
236 - `GuzzleHttp\Utils::setPath` -> `GuzzleHttp\set_path`
237 - `GuzzleHttp\Pool::batch` -> `GuzzleHttp\batch`. This function is, however,
238 deprecated in favor of using `GuzzleHttp\Pool::batch()`.
241 `GuzzleHttp\get()`, `GuzzleHttp\post()`, etc.). Use a `GuzzleHttp\Client`
265 `GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header
282 now utilized in `GuzzleHttp\Event\EmitterInterface` (resulting in significant
303 at `GuzzleHttp\ClientInterface::VERSION`.
317 `GuzzleHttp\Event\Emitter`.
320 `GuzzleHttp\Event\EmitterInterface`.
322 `GuzzleHttp\Event\Emitter`.
324 `GuzzleHttp\Event\Event`, and Guzzle now has an EventInterface in
325 `GuzzleHttp\Event\EventInterface`.
371 - `Guzzle\Http\Url` has moved to `GuzzleHttp\Url`.
372 - `Guzzle\Http\QueryString` has moved to `GuzzleHttp\Query`.
375 - `GuzzleHttp\StaticClient` has been removed. Use the functions provided in
377 - Exceptions in `GuzzleHttp\Exception` have been updated to all extend from
378 `GuzzleHttp\Exception\TransferException`.
399 `GuzzleHttp\ClientInterface` has changed.
409 `GuzzleHttp\Client` has changed.
428 `GuzzleHttp\Adapter\TransactionInterface` object. You can get references to
434 - `GuzzleHttp\Message\EntityEnclosingRequest` and
435 `GuzzleHttp\Message\EntityEnclosingRequestInterface` have been removed. The
437 contain a body has been removed, and now `GuzzleHttp\Message\RequestInterface`
439 - Any method that previously accepts a `GuzzleHttp\Response` object now accept a
440 `GuzzleHttp\Message\ResponseInterface`.
441 - `GuzzleHttp\Message\RequestFactoryInterface` has been renamed to
442 `GuzzleHttp\Message\MessageFactoryInterface`. This interface is used to create
444 `GuzzleHttp\Message\MessageFactory`.
446 must now use the methods made available to `GuzzleHttp\Post\PostBodyInterface`
448 standard `GuzzleHttp\Message\MessageFactoryInterface` will automatically use
449 a `GuzzleHttp\Post\PostBody` body if the body was passed as an array or if
460 - `GuzzleHttp\Message\Header` has been removed. Header values are now simply
465 - `GuzzleHttp\PostFile` and `GuzzleHttp\PostFileInterface` have been moved to
466 `GuzzleHttp\Post`. This interface has been simplified and now allows the
468 - Custom headers like `GuzzleHttp\Message\Header\Link` have been removed. Most
470 subscribers/plugins, and `GuzzleHttp\Message\HeaderValues::parseParams()` has
476 - `GuzzleHttp\Message\Response::getInfo()` and
477 `GuzzleHttp\Message\Response::setInfo()` have been removed. Use the event
479 - `GuzzleHttp\Message\Response::getRawHeaders()` has been removed.
480 - `GuzzleHttp\Message\Response::getMessage()` has been removed.
481 - `GuzzleHttp\Message\Response::calculateAge()` and other cache specific
485 - `GuzzleHttp\Message\Response::setRequest()` and
486 `GuzzleHttp\Message\Response::getRequest()` have been removed. Use the event
488 - `GuzzleHttp\Message\Response::getRedirectCount()` has been removed. Use the
490 - `GuzzleHttp\Message\Response::isSuccessful()` and other related methods have
496 `GuzzleHttp\Message\ResponseInterface` object that contains a body stream
531 `GuzzleHttp\Stream`. All classes and interfaces that once required
532 `GuzzleHttp\EntityBodyInterface` now require
533 `GuzzleHttp\Stream\StreamInterface`. Creating a new body for a request no
534 longer uses `GuzzleHttp\EntityBody::factory` but now uses
535 `GuzzleHttp\Stream\Stream::factory` or even better:
536 `GuzzleHttp\Stream\create()`.
538 - `Guzzle\Http\EntityBodyInterface` is now `GuzzleHttp\Stream\StreamInterface`
539 - `Guzzle\Http\EntityBody` is now `GuzzleHttp\Stream\Stream`
540 - `Guzzle\Http\CachingEntityBody` is now `GuzzleHttp\Stream\CachingStream`
541 - `Guzzle\Http\ReadLimitEntityBody` is now `GuzzleHttp\Stream\LimitStream`
550 `GuzzleHttp\Event\EventInterface` object that contains context providing
555 `GuzzleHttp\Event\BeforeEvent`
557 `GuzzleHttp\Event\CompleteEvent`.
560 - `error` is now an event that emits a `GuzzleHttp\Event\ErrorEvent`.
572 event emits a `GuzzleHttp\Event\HeadersEvent`.
575 of a `GuzzleHttp\Event\BeforeEvent`, `GuzzleHttp\Event\CompleteEvent`, and
576 `GuzzleHttp\Event\ErrorEvent` event.
604 moved to `GuzzleHttp\Subscriber\Log\Formatter`.
614 `GuzzleHttp\Cookie\SetCookie::fromString`.
616 to `GuzzleHttp\Message\MessageFactory::fromMessage`. Message parsing is only
620 `GuzzleHttp\UriTemplate`. The Guzzle library will automatically use the PECL
622 - Url: URL parsing is now performed in `GuzzleHttp\Url::fromString` (previously
624 then developers are free to subclass `GuzzleHttp\Url`.
628 The `Guzzle\Plugin` namespace has been renamed to `GuzzleHttp\Subscriber`.
631 - `GuzzleHttp\Subscriber\Cookie`: Replaces the old CookiePlugin. Cookie jar
632 code has moved to `GuzzleHttp\Cookie`.
633 - `GuzzleHttp\Subscriber\History`: Replaces the old HistoryPlugin.
634 - `GuzzleHttp\Subscriber\HttpError`: Throws errors when a bad HTTP response is
636 - `GuzzleHttp\Subscriber\Mock`: Replaces the old MockPlugin.
637 - `GuzzleHttp\Subscriber\Prepare`: Prepares the body of a request just before
639 - `GuzzleHttp\Subscriber\Redirect`: Replaces the RedirectPlugin.
644 - `GuzzleHttp\Plugin\Async` has been removed.
645 - `GuzzleHttp\Plugin\CurlAuth` has been removed.
646 - `GuzzleHttp\Plugin\ErrorResponse\ErrorResponsePlugin` has been removed. This
663 `GuzzleHttp\Subscriber\MockSubscriber`.
692 `GuzzleHttp\Stream\MetadataStreamInterface`.
695 using streams that implement `GuzzleHttp\Stream\MetadataStreamInterface`.
704 `GuzzleHttp\Stream\Stream`.
708 `GuzzleHttp\Stream\MetadataStreamInterface` has been added to denote streams
710 `GuzzleHttp\Stream\StreamInterface::getMetadata` and
711 `GuzzleHttp\Stream\StreamInterface::setMetadata` have been removed.
718 PHP requests are now implemented through the `GuzzleHttp\Adapter\StreamAdapter`.