basecamp / easymon

Easy Monitoring
MIT License
205 stars 16 forks source link

Shed the rest-client dependency in favor of using net/http #14

Closed packagethief closed 9 years ago

packagethief commented 9 years ago

Replaces rest-client with its stdlib net/http equivalent. Since we're only making HEAD requests, there's little need to haul in rest-client. The fewer dependencies the better.

Note that this tightens up the HTTP check to require a 2xx response. Previously a 3xx response would be followed by rest-client – there's no support for following redirects here.

Obviates the need for #12.