nextcloud/lib/public/Http/Client/IResponse.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
679 B
PHP
Raw Normal View History

2015-03-16 06:28:23 -04:00
<?php
declare(strict_types=1);
2015-03-16 06:28:23 -04:00
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
2015-03-16 06:28:23 -04:00
*/
namespace OCP\Http\Client;
/**
* Interface IResponse
*
* @since 8.1.0
2015-03-16 06:28:23 -04:00
*/
interface IResponse {
/**
* @return string|resource
* @since 8.1.0
2015-03-16 06:28:23 -04:00
*/
public function getBody();
/**
* @return int
* @since 8.1.0
2015-03-16 06:28:23 -04:00
*/
public function getStatusCode(): int;
2015-03-16 06:28:23 -04:00
/**
* @param string $key
2015-03-16 06:28:23 -04:00
* @return string
* @since 8.1.0
2015-03-16 06:28:23 -04:00
*/
public function getHeader(string $key): string;
2015-03-16 06:28:23 -04:00
/**
* @return array
* @since 8.1.0
2015-03-16 06:28:23 -04:00
*/
public function getHeaders(): array;
2015-03-16 06:28:23 -04:00
}