2017 © Pedro Peláez
 

library guzzle-sunset

image

hskrasek/guzzle-sunset

  • Saturday, September 9, 2017
  • by hskrasek
  • Repository
  • 2 Watchers
  • 5 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Guzzle Middleware Sunset

![Build Status][travis-image] ![MIT License][license-image], (*1)

Watch out for Sunset headers on HTTP responses, as they signify the deprecation (and eventual removal) of an endpoint., (*2)

Sunset is an in-development RFC for a HTTP response header, currently v03. Check out GitHub for issues and discussion around it's development., (*3)

This specification defines the Sunset HTTP response header field, which indicates that a URI is likely to become unresponsive at a specified point in the future., (*4)

The header we're sniffing for looks a little like this:, (*5)

Sunset: Sat, 31 Dec 2018 23:59:59 GMT

So long as the server being called is inserting a Sunset header to the response with a HTTP date, this client-side code will do stuff., (*6)

Install

Via Composer, (*7)

composer require hskrasek/guzzle-sunset

Usage

$stack = new \GuzzleHttp\HandlerStack(\GuzzleHttp\choose_handler());
$stack->push(new \HSkrasek\Sunset\SunsetMiddleware($somePsr3Logger));

$client = new \GuzzleHttp\Client(['handler' => $stack]);

Change log

Please see CHANGELOG for more information on what has changed recently., (*8)

Testing

bash $ composer test, (*9)

Contributing

Bug reports and pull requests are welcome on GitHub at hskrasek/guzzle-sunset. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct., (*10)

The Versions

09/09 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

09/09 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires