3 namespace Friendica\Network;
5 use Psr\Http\Message\MessageInterface;
8 * Temporary class to map Friendica used variables based on PSR-7 HTTPResponse
13 * Gets the Return Code
15 * @return string The Return Code
17 public function getReturnCode();
20 * Returns the Content Type
22 * @return string the Content Type
24 public function getContentType();
28 * @see MessageInterface::getHeader()
30 * @param string $header optional header field. Return all fields if empty
32 * @return string[] the headers or the specified content of the header variable
34 public function getHeader($header);
38 * @see MessageInterface::getHeaders()
42 public function getHeaders();
45 * Check if a specified header exists
46 * @see MessageInterface::hasHeader()
48 * @param string $field header field
50 * @return boolean "true" if header exists
52 public function inHeader(string $field);
55 * Returns the headers as an associated array
56 * @see MessageInterface::getHeaders()
59 * @return string[][] associated header array
61 public function getHeaderArray();
66 public function isSuccess();
71 public function getUrl();
76 public function getRedirectUrl();
79 * @see MessageInterface::getBody()
83 public function getBody();
88 public function isRedirectUrl();
93 public function getErrorNumber();
98 public function getError();
103 public function isTimeout();