Pandabot/vendor/amphp/http-client/src/HttpContent.php

25 lines
479 B
PHP
Executable file

<?php declare(strict_types=1);
namespace Amp\Http\Client;
use 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;
}