<?php

declare(strict_types=1);

namespace App\Framework\HttpClient\Curl;

/**
 * Type-safe enum for cURL pause constants (CURLPAUSE_*)
 *
 * Used with Handle::pause() to pause/unpause data transfer
 */
enum Pause: int
{
    case Recv = CURLPAUSE_RECV;
    case Send = CURLPAUSE_SEND;
    case All = CURLPAUSE_ALL;
    case Cont = CURLPAUSE_CONT; // Note: CURLPAUSE_RECV_CONT and CURLPAUSE_SEND_CONT are aliases for CURLPAUSE_CONT (all = 0)
}
