iamstuartwilson / strava

PHP Class for the Strava API (v3)
MIT License
120 stars 26 forks source link

add methods for accessing the HTTP response headers #16

Closed mjaschen closed 8 years ago

mjaschen commented 8 years ago

It's possible to access the HTTP response headers with two added methods:

The first one returns all HTTP headers as an array while the second returns the header value for the given header name (and throws an exception if the header name does not exist).

The existing public API of the StravaAPI class is unchanged, only two new public methods were introduced.