Skip to content

Deprecate Http subclass#43

Merged
wilsonge merged 2 commits intomasterfrom
deprecate-http-subclass
Mar 26, 2018
Merged

Deprecate Http subclass#43
wilsonge merged 2 commits intomasterfrom
deprecate-http-subclass

Conversation

@mbabker
Copy link
Copy Markdown
Contributor

@mbabker mbabker commented Mar 24, 2018

The Joomla\Github\Http subclass adds no real value to the API other than defining an arbitrary default user agent and a request timeout, as well as defining some class constants for features that were never developed. Let's deprecate this and allow the base Joomla\Http\Http class to be injected instead.

@mbabker mbabker requested a review from wilsonge March 24, 2018 16:26
@wilsonge
Copy link
Copy Markdown
Contributor

I'm assuming this is tested? I know some APIs require a User Agent?

@mbabker
Copy link
Copy Markdown
Contributor Author

mbabker commented Mar 26, 2018

Ahh, yeah, GitHub is one of those APIs. Added logic to Github class constructor for that.

@wilsonge wilsonge merged commit f331095 into master Mar 26, 2018
@mbabker mbabker deleted the deprecate-http-subclass branch March 26, 2018 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants