diff options
author | Andrew Dolgov <[email protected]> | 2022-11-23 21:14:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-11-23 21:14:33 +0300 |
commit | 0c8af4992cb0f7589dcafaad65ada12753c64594 (patch) | |
tree | 18e83d068c3e7dd2499331de977782b382279396 /vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Response.php |
initial
Diffstat (limited to 'vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Response.php')
-rw-r--r-- | vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Response.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Response.php b/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Response.php new file mode 100644 index 0000000..526edc3 --- /dev/null +++ b/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Response.php @@ -0,0 +1,27 @@ +<?php +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +namespace AWS\CRT\HTTP; + +class Response extends Message { + private $status_code; + + public function __construct($method, $path, $query, $headers, $status_code) { + parent::__construct($method, $path, $query, $headers); + $this->status_code = $status_code; + } + + public static function marshall($response) { + return parent::marshall($response); + } + + public static function unmarshall($buf) { + return parent::_unmarshall($buf, Response::class); + } + + public function status_code() { + return $this->status_code; + } +} |