http: Support callback functions in GuzzleHttpRequest
authorBill Pirkle <bpirkle@wikimedia.org>
Wed, 2 Jan 2019 22:16:44 +0000 (16:16 -0600)
committerKrinkle <krinklemail@gmail.com>
Thu, 24 Jan 2019 22:05:10 +0000 (22:05 +0000)
commite8cb9f5f83534dac16bedb8a3af6cdf0f0fd617f
treede3a59a8027d8c5586f1f45b2a6bca5b32976ce4
parentcd0860616a21ac611f4a78e686a6871d80542aec
http: Support callback functions in GuzzleHttpRequest

Provide backward compatibility for callback functions in
GuzzleHttpRequest, which was missing in T202110, and restore
GuzzleHttpRequest as the default provided by HttpRequestFactory.

Bug: T212175
Depends-On: I4b45e79d35252d13f714f3271b87301ca515121a
Change-Id: I60d1a034b44874f6d24a04058db264eeb565f5e1
autoload.php
includes/http/GuzzleHttpRequest.php
includes/http/Http.php
includes/http/MWCallbackStream.php [new file with mode: 0644]
includes/http/MWHttpRequest.php
tests/phpunit/includes/http/GuzzleHttpRequestTest.php [new file with mode: 0644]
tests/phpunit/includes/http/HttpTest.php
tests/phpunit/includes/site/MediaWikiPageNameNormalizerTest.php