Submit
Path:
~
/
/
opt
/
psa
/
admin
/
plib
/
modules
/
letsencrypt
/
vendor
/
aws
/
aws-crt-php
/
src
/
AWS
/
CRT
/
HTTP
/
File Content:
Request.php
<?php /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ namespace PleskLetsEncrypt\AWS\CRT\HTTP; use PleskLetsEncrypt\AWS\CRT\IO\InputStream; class Request extends Message { private $body_stream = null; public function __construct($method, $path, $query = [], $headers = [], $body_stream = null) { parent::__construct($method, $path, $query, $headers); if (!\is_null($body_stream) && !$body_stream instanceof InputStream) { throw new \InvalidArgumentException('body_stream must be an instance of ' . InputStream::class); } $this->body_stream = $body_stream; } public static function marshall($request) { return parent::marshall($request); } public static function unmarshall($buf) { return parent::_unmarshall($buf, Request::class); } public function body_stream() { return $this->body_stream; } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
Headers.php
1284 bytes
0644
Message.php
2823 bytes
0644
Request.php
988 bytes
0644
Response.php
725 bytes
0644
N4ST4R_ID | Naxtarrr