src/FeedIo/Adapter/ResponseInterface.php
<?php
declare(strict_types=1);
namespace FeedIo\Adapter;
/**
* Describes a HTTP Response as returned by an instance of ClientInterface
*
*/
interface ResponseInterface
{
/**
* @return string
*/
public function getBody(): ?string;
/**
* request's duration in seconds
*
* @return float
*/
public function getDuration(): float;
/**
* @return int
*/
public function getStatusCode(): int;
/**
* @return \DateTime
*/
public function getLastModified(): ?\DateTime;
/**
* @return iterable
*/
public function getHeaders(): iterable;
/**
* @param string $name
* @return iterable
*/
public function getHeader(string $name): iterable;
/**
* @return boolean
*/
public function isModified(): bool;
}