Defines the interface for creating API request contexts to send HTTP requests without a browser page.
// Source: https://github.com/playwright-php/playwright | License: MIT | Copyright 2025-present Simon André & Playwright PHP
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);
/*
* This file is part of the community-maintained Playwright PHP project.
* It is not affiliated with or endorsed by Microsoft.
*
* (c) 2025-Present - Playwright PHP - https://github.com/playwright-php
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Playwright\API;
/**
* Creates API request contexts.
*
* Contexts send HTTP requests without creating a browser page.
* Each context owns its cookies and request configuration.
*/
interface APIRequestInterface
{
/**
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key