Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 991 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 991 Revision 1464
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile -...
2
 
-
 
3
declare(strict_types=1);
-
 
4
 
2
 
Zeile 5... Zeile 3...
5
namespace Psr\Http\Message;
3
namespace Psr\Http\Message;
6
 
4
 
7
/**
5
/**
Zeile 39... Zeile 37...
39
     * If no URI is available, and no request-target has been specifically
37
     * If no URI is available, and no request-target has been specifically
40
     * provided, this method MUST return the string "/".
38
     * provided, this method MUST return the string "/".
41
     *
39
     *
42
     * @return string
40
     * @return string
43
     */
41
     */
44
    public function getRequestTarget();
42
    public function getRequestTarget(): string;
Zeile 45... Zeile 43...
45
 
43
 
46
    /**
44
    /**
47
     * Return an instance with the specific request-target.
45
     * Return an instance with the specific request-target.
48
     *
46
     *
Zeile 58... Zeile 56...
58
     * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
56
     * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
59
     *     request-target forms allowed in request messages)
57
     *     request-target forms allowed in request messages)
60
     * @param string $requestTarget
58
     * @param string $requestTarget
61
     * @return static
59
     * @return static
62
     */
60
     */
63
    public function withRequestTarget(string $requestTarget);
61
    public function withRequestTarget(string $requestTarget): RequestInterface;
-
 
62
 
Zeile 64... Zeile 63...
64
 
63
 
65
    /**
64
    /**
66
     * Retrieves the HTTP method of the request.
65
     * Retrieves the HTTP method of the request.
67
     *
66
     *
68
     * @return string Returns the request method.
67
     * @return string Returns the request method.
69
     */
68
     */
Zeile 70... Zeile 69...
70
    public function getMethod();
69
    public function getMethod(): string;
71
 
70
 
72
    /**
71
    /**
73
     * Return an instance with the provided HTTP method.
72
     * Return an instance with the provided HTTP method.
Zeile 82... Zeile 81...
82
     *
81
     *
83
     * @param string $method Case-sensitive method.
82
     * @param string $method Case-sensitive method.
84
     * @return static
83
     * @return static
85
     * @throws \InvalidArgumentException for invalid HTTP methods.
84
     * @throws \InvalidArgumentException for invalid HTTP methods.
86
     */
85
     */
87
    public function withMethod(string $method);
86
    public function withMethod(string $method): RequestInterface;
Zeile 88... Zeile 87...
88
 
87
 
89
    /**
88
    /**
90
     * Retrieves the URI instance.
89
     * Retrieves the URI instance.
91
     *
90
     *
92
     * This method MUST return a UriInterface instance.
91
     * This method MUST return a UriInterface instance.
93
     *
92
     *
94
     * @link http://tools.ietf.org/html/rfc3986#section-4.3
93
     * @link http://tools.ietf.org/html/rfc3986#section-4.3
95
     * @return UriInterface Returns a UriInterface instance
94
     * @return UriInterface Returns a UriInterface instance
96
     *     representing the URI of the request.
95
     *     representing the URI of the request.
97
     */
96
     */
Zeile 98... Zeile 97...
98
    public function getUri();
97
    public function getUri(): UriInterface;
99
 
98
 
100
    /**
99
    /**
101
     * Returns an instance with the provided URI.
100
     * Returns an instance with the provided URI.
Zeile 125... Zeile 124...
125
     * @link http://tools.ietf.org/html/rfc3986#section-4.3
124
     * @link http://tools.ietf.org/html/rfc3986#section-4.3
126
     * @param UriInterface $uri New request URI to use.
125
     * @param UriInterface $uri New request URI to use.
127
     * @param bool $preserveHost Preserve the original state of the Host header.
126
     * @param bool $preserveHost Preserve the original state of the Host header.
128
     * @return static
127
     * @return static
129
     */
128
     */
130
    public function withUri(UriInterface $uri, bool $preserveHost = false);
129
    public function withUri(UriInterface $uri, bool $preserveHost = false): RequestInterface;
131
}
130
}