Server geändert

This commit is contained in:
aschwarz
2023-04-25 13:16:13 +02:00
parent acc225abac
commit faad1bfa71
966 changed files with 5193 additions and 5193 deletions

View File

@ -1,6 +1,6 @@
# PSR-7 Message Implementation
This repository contains a full [PSR-7](http://www.php-fig.org/psr/psr-7/)
This repository contains a full [PSR-7](https://www.php-fig.org/psr/psr-7/)
message implementation, several stream decorators, and some helpful
functionality like query string parsing.
@ -65,7 +65,7 @@ then on disk.
```php
use GuzzleHttp\Psr7;
$original = Psr7\stream_for(fopen('http://www.google.com', 'r'));
$original = Psr7\stream_for(fopen('https://www.google.com', 'r'));
$stream = new Psr7\CachingStream($original);
$stream->read(1024);
@ -315,7 +315,7 @@ There are various functions available under the `GuzzleHttp\Psr7` namespace.
Returns the string representation of an HTTP message.
```php
$request = new GuzzleHttp\Psr7\Request('GET', 'http://example.com');
$request = new GuzzleHttp\Psr7\Request('GET', 'https://example.com');
echo GuzzleHttp\Psr7\str($request);
```
@ -329,7 +329,7 @@ UriInterface for the given value. If the value is already a `UriInterface`, it
is returned as-is.
```php
$uri = GuzzleHttp\Psr7\uri_for('http://example.com');
$uri = GuzzleHttp\Psr7\uri_for('https://example.com');
assert($uri === GuzzleHttp\Psr7\uri_for($uri));
```
@ -595,7 +595,7 @@ manually but instead is used indirectly via `Psr\Http\Message\UriInterface::__to
`public static function fromParts(array $parts): UriInterface`
Creates a URI from a hash of [`parse_url`](http://php.net/manual/en/function.parse-url.php) components.
Creates a URI from a hash of [`parse_url`](https://php.net/manual/en/function.parse-url.php) components.
### `GuzzleHttp\Psr7\Uri::withQueryValue`
@ -653,11 +653,11 @@ One use-case is to use the current request URI as base URI and then generate rel
to reduce the document size or offer self-contained downloadable document archives.
```php
$base = new Uri('http://example.com/a/b/');
echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'.
echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'.
echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'.
echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'.
$base = new Uri('https://example.com/a/b/');
echo UriResolver::relativize($base, new Uri('https://example.com/a/b/c')); // prints 'c'.
echo UriResolver::relativize($base, new Uri('https://example.com/a/x/y')); // prints '../x/y'.
echo UriResolver::relativize($base, new Uri('https://example.com/a/b/?q')); // prints '?q'.
echo UriResolver::relativize($base, new Uri('https://example.org/a/b/')); // prints '//example.org/a/b/'.
```
## Normalization and Comparison
@ -681,7 +681,7 @@ of normalizations to apply. The following normalizations are available:
All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be capitalized.
Example: `http://example.org/a%c2%b1b``http://example.org/a%C2%B1b`
Example: `https://example.org/a%c2%b1b``https://example.org/a%C2%B1b`
- `UriNormalizer::DECODE_UNRESERVED_CHARACTERS`
@ -690,13 +690,13 @@ of normalizations to apply. The following normalizations are available:
not be created by URI producers and, when found in a URI, should be decoded to their corresponding unreserved
characters by URI normalizers.
Example: `http://example.org/%7Eusern%61me/``http://example.org/~username/`
Example: `https://example.org/%7Eusern%61me/``https://example.org/~username/`
- `UriNormalizer::CONVERT_EMPTY_PATH`
Converts the empty path to "/" for http and https URIs.
Example: `http://example.org``http://example.org/`
Example: `https://example.org``https://example.org/`
- `UriNormalizer::REMOVE_DEFAULT_HOST`
@ -710,14 +710,14 @@ of normalizations to apply. The following normalizations are available:
Removes the default port of the given URI scheme from the URI.
Example: `http://example.org:80/``http://example.org/`
Example: `https://example.org:80/``https://example.org/`
- `UriNormalizer::REMOVE_DOT_SEGMENTS`
Removes unnecessary dot-segments. Dot-segments in relative-path references are not removed as it would
change the semantics of the URI reference.
Example: `http://example.org/../a/b/../c/./d.html``http://example.org/a/c/d.html`
Example: `https://example.org/../a/b/../c/./d.html``https://example.org/a/c/d.html`
- `UriNormalizer::REMOVE_DUPLICATE_SLASHES`
@ -725,7 +725,7 @@ of normalizations to apply. The following normalizations are available:
and treat those URIs equivalent. But in theory those URIs do not need to be equivalent. So this normalization
may change the semantics. Encoded slashes (%2F) are not removed.
Example: `http://example.org//foo///bar.html``http://example.org/foo/bar.html`
Example: `https://example.org//foo///bar.html``https://example.org/foo/bar.html`
- `UriNormalizer::SORT_QUERY_PARAMETERS`