Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RequestFactoryInterface.php

function RequestFactoryInterface::createRequest

Create a new request.

Parameters

string $method The HTTP method associated with the request.:

UriInterface|string $uri The URI associated with the request. If: the value is a string, the factory MUST create a UriInterface instance based on it.

Return value

RequestInterface

2 methods override RequestFactoryInterface::createRequest()
HttpFactory::createRequest in vendor/guzzlehttp/psr7/src/HttpFactory.php
Create a new request.
Psr17Factory::createRequest in vendor/php-http/discovery/src/Psr17Factory.php

File

vendor/psr/http-factory/src/RequestFactoryInterface.php, line 17

Class

RequestFactoryInterface

Namespace

Psr\Http\Message

Code

public function createRequest(string $method, $uri) : RequestInterface;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal