$request = new Request('POST', '/api/users');
$headers = [ 'Content-Type' => 'application/json', 'Authorization' => 'Bearer abc123' ]; $request = new Request('GET', '/api/posts', $headers);
$data = [ 'name' => 'John Doe', 'email' => 'johndoe@example.com' ]; $request = new Request('POST', '/api/users', [], $data);The package library for the Request __construct function is likely the Symfony HTTP Foundation package, which provides a variety of HTTP-related classes and functions for building web applications in PHP.