<?php

declare( strict_types=1 );

namespace Brightfern\Support\Http;

/**
 * Minimal HTTP abstraction so the network-touching validators (SMP lookup,
 * VIES) can be unit-tested with a fake and run on WordPress with wp_remote_*.
 */
interface HttpClient {

	/**
	 * @param array<string,string> $headers
	 */
	public function get( string $url, array $headers = array(), int $timeout = 10 ): HttpResponse;

	/**
	 * @param array<string,string> $headers
	 */
	public function post( string $url, string $body, array $headers = array(), int $timeout = 15 ): HttpResponse;
}
