<?php

declare (strict_types=1);
namespace GDAVSCOPE\Amp\Http\Client;

use GDAVSCOPE\Amp\ByteStream\ReadableStream;
interface HttpContent
{
    /**
     * Multiple calls should return a new stream every time or throw.
     *
     * @throws HttpException
     */
    public function getContent(): ReadableStream;
    /**
     * @throws HttpException
     */
    public function getContentLength(): ?int;
    /**
     * @throws HttpException
     */
    public function getContentType(): ?string;
}
