To be considered:
- (includes/http) Http, MWHttpRequest, CurlHttpRequest
- (libs) HttpAcceptParser, HttpAcceptNegotiator
- (libs) MultiHttpClient
- (libs) HttpStatus
This would mean that said library could be used by https://github.com/addwiki/mediawiki-api-base which is required by https://github.com/addwiki/wikibase-api.
https://github.com/addwiki/wikibase-api could then easily be used by the WikibaseClient potentially helping to resolve T48556
Not only that, but this code is also perfect for a library....