Refactor HTTP access out of HostingService class.
Review Request #5691 — Created April 9, 2014 and submitted — Latest diff uploaded
This change adds a new
HostingServiceClientclass which handles the basic
details of HTTP and JSON communication with hosting service APIs. This is
primarily just extracting the functionality out of theHostingServiceclass.
IndividualHostingServices can override this class to add additional checking
(such as GitHub's checking of rate limit headers), or add higher-level API
functionality.
- Ran unit tests.
- Tested post-commit review request creation.