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

Breadcrumb

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

function ServerRequest::__construct

Parameters

string $method HTTP method:

string|UriInterface $uri URI:

(string|string[])[] $headers Request headers:

string|resource|StreamInterface|null $body Request body:

string $version Protocol version:

array $serverParams Typically the $_SERVER superglobal:

Overrides Request::__construct

File

vendor/guzzlehttp/psr7/src/ServerRequest.php, line 67

Class

ServerRequest
Server-side HTTP request

Namespace

GuzzleHttp\Psr7

Code

public function __construct(string $method, $uri, array $headers = [], $body = null, string $version = '1.1', array $serverParams = []) {
    $this->serverParams = $serverParams;
    parent::__construct($method, $uri, $headers, $body, $version);
}

API Navigation

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