1: | <?php |
2: | |
3: | namespace OpenSearch; |
4: | |
5: | use Psr\Http\Message\RequestInterface; |
6: | |
7: | interface RequestFactoryInterface |
8: | { |
9: | /** |
10: | * Create a new request. |
11: | * |
12: | * @param array<string, mixed> $params |
13: | * @param string|array<string, mixed>|null $body |
14: | * @param array<string, string> $headers |
15: | */ |
16: | public function createRequest( |
17: | string $method, |
18: | string $uri, |
19: | array $params = [], |
20: | string|array|null $body = null, |
21: | array $headers = [], |
22: | ): RequestInterface; |
23: | } |
24: |