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

Breadcrumb

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

Uri::HTTP_DEFAULT_HOST

Absolute http and https URIs require a host per RFC 7230 Section 2.7 but in generic URIs the host can be empty. So for http(s) URIs we apply this default host when no host is given yet to form a valid URI.

File

vendor/guzzlehttp/psr7/src/Uri.php, line 25

Class

Uri
PSR-7 URI implementation.

Namespace

GuzzleHttp\Psr7

Code

private const HTTP_DEFAULT_HOST = 'localhost';

API Navigation

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