ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
}
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
libs
composer
vendor
slim
slim
Slim
Http
RequestBody.php
Generated on Tue Jan 28 2025 19:01:13 for ILIAS by
1.8.13 (using
Doxyfile
)