vendor/psr/http-factory/src/RequestFactoryInterface.php

main
vox-populi/vendor/psr/http-factory/src/RequestFactoryInterface.php history · blame · raw

18 lines · 499 bytes

 1<?php
 2
 3namespace Psr\Http\Message;
 4
 5interface RequestFactoryInterface
 6{
 7    /**
 8     * Create a new request.
 9     *
10     * @param string $method The HTTP method associated with the request.
11     * @param UriInterface|string $uri The URI associated with the request. If
12     *     the value is a string, the factory MUST create a UriInterface
13     *     instance based on it.
14     *
15     * @return RequestInterface
16     */
17    public function createRequest(string $method, $uri): RequestInterface;
18}