Skip to content

Instantly share code, notes, and snippets.

View eexit's full-sized avatar
🚀

Joris Berthelot eexit

🚀
View GitHub Profile
@eexit
eexit / README.md
Last active March 14, 2022 17:59
YouTube Watch History Replayer
@eexit
eexit / BodyRewinderMiddleware.php
Last active November 2, 2022 18:06
The Guzzle 7 BodyRewinderMiddleware allows to rewind a body which would have been read and not rewinded by previous middlewares.
<?php
declare(strict_types=1);
namespace App\GuzzleMiddleware;
use GuzzleHttp\Promise\PromiseInterface;
use GuzzleHttp\Psr7\Message;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;