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

Breadcrumb

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

function ServerRequestCreator::getUriFromEnvWithHTTP

1 call to ServerRequestCreator::getUriFromEnvWithHTTP()
ServerRequestCreator::fromArrays in vendor/nyholm/psr7-server/src/ServerRequestCreator.php
Create a new server request from a set of arrays.

File

vendor/nyholm/psr7-server/src/ServerRequestCreator.php, line 161

Class

ServerRequestCreator
@author Tobias Nyholm <tobias.nyholm@gmail.com> @author Martijn van der Ven <martijn@vanderven.se>

Namespace

Nyholm\Psr7Server

Code

private function getUriFromEnvWithHTTP(array $environment) : UriInterface {
    $uri = $this->createUriFromArray($environment);
    if (empty($uri->getScheme())) {
        $uri = $uri->withScheme('http');
    }
    return $uri;
}

API Navigation

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