public function runBeforeSendingCallbacks(Request $request): Request
    {
        return tap($request, function ($request) {
            $this->beforeSendingCallbacks->each->__invoke(new HttpRequest($request));
        });
    }
public function runBeforeSendingCallbacks(Request $request): Request
    {
        return tap($request, function ($request) {
            $this->beforeSendingCallbacks->each->__invoke(new HttpRequest($request));
        });
    }
public function runBeforeSendingCallbacks ( Request $ request ) : Request { return tap ( $ request , function ( $ request ) { $ this -> beforeSendingCallbacks -> each -> __invoke ( new HttpRequest ( $ request ) ) ; } ) ; }
Run the pre-request callback.

@param \GuzzleHttp\Psr7\Request $request

@return \GuzzleHttp\Psr7\Request
Run the pre - request callback .