master

laravel/framework

Last updated at: 29/12/2023 09:24

ConnectionFailed.php

TLDR

This file contains the ConnectionFailed class in the Illuminate\Http\Client\Events namespace. It is responsible for handling the event when a HTTP client connection fails.

Classes

ConnectionFailed

The ConnectionFailed class is an event class that represents a connection failure in the HTTP client. It contains a public property $request that holds the instance of the failed request. This class is used to create an event instance when a connection failure occurs.

<?php

namespace Illuminate\Http\Client\Events;

use Illuminate\Http\Client\Request;

class ConnectionFailed
{
    /**
     * The request instance.
     *
     * @var \Illuminate\Http\Client\Request
     */
    public $request;

    /**
     * Create a new event instance.
     *
     * @param  \Illuminate\Http\Client\Request  $request
     * @return void
     */
    public function __construct(Request $request)
    {
        $this->request = $request;
    }
}