✏️ 编辑:Response.php
路径:
/home/boguraj1/.trash/vendor/facade/flare-client-php/src/Http/Response.php
大小:968 B · 修改:2026-07-23 16:13:46 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php namespace Facade\FlareClient\Http; class Response { private $headers; private $body; private $error; public function __construct($headers, $body, $error) { $this->headers = $headers; $this->body = $body; $this->error = $error; } /** * @return mixed */ public function getHeaders() { return $this->headers; } /** * @return mixed */ public function getBody() { return $this->body; } /** * @return bool */ public function hasBody() { return $this->body != false; } /** * @return mixed */ public function getError() { return $this->error; } /** * @return null|int */ public function getHttpResponseCode() { if (! isset($this->headers['http_code'])) { return; } return (int) $this->headers['http_code']; } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF