ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
RequestBody.php
Go to the documentation of this file.
1
<?
php
9
namespace
Slim\Http
;
10
14
class
RequestBody
extends
Body
15
{
19
public
function
__construct
()
20
{
21
$stream
=
fopen
(
'php://temp'
,
'w+'
);
22
stream_copy_to_stream(
fopen
(
'php://input'
,
'r'
),
$stream
);
23
rewind
(
$stream
);
24
25
parent::__construct(
$stream
);
26
}
27
}
fopen
Slim\Http\Stream\$stream
$stream
Definition:
Stream.php:45
Slim\Http
Slim Framework (https://slimframework.com)
Definition:
Body.php:9
Slim\Http\RequestBody
Provides a PSR-7 implementation of a reusable raw request body.
Definition:
RequestBody.php:14
Slim\Http\Stream\rewind
rewind()
Seek to the beginning of the stream.
Definition:
Stream.php:367
Slim\Http\Body
Body.
Definition:
Body.php:19
Slim\Http\RequestBody\__construct
__construct()
Create a new RequestBody.
Definition:
RequestBody.php:19
php
libs
composer
vendor
slim
slim
Slim
Http
RequestBody.php
Generated on Thu Feb 27 2025 19:01:34 for ILIAS by
1.8.13 (using
Doxyfile
)