Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 37... Línea 37...
37
     * 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
38
     * provided, this method MUST return the string "/".
38
     * provided, this method MUST return the string "/".
39
     *
39
     *
40
     * @return string
40
     * @return string
41
     */
41
     */
42
    public function getRequestTarget();
42
    public function getRequestTarget(): string;
Línea 43... Línea 43...
43
 
43
 
44
    /**
44
    /**
45
     * Return an instance with the specific request-target.
45
     * Return an instance with the specific request-target.
46
     *
46
     *
Línea 53... Línea 53...
53
     * immutability of the message, and MUST return an instance that has the
53
     * immutability of the message, and MUST return an instance that has the
54
     * changed request target.
54
     * changed request target.
55
     *
55
     *
56
     * @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
57
     *     request-target forms allowed in request messages)
57
     *     request-target forms allowed in request messages)
58
     * @param mixed $requestTarget
58
     * @param string $requestTarget
59
     * @return static
59
     * @return static
60
     */
60
     */
61
    public function withRequestTarget($requestTarget);
61
    public function withRequestTarget(string $requestTarget): RequestInterface;
-
 
62
 
Línea 62... Línea 63...
62
 
63
 
63
    /**
64
    /**
64
     * Retrieves the HTTP method of the request.
65
     * Retrieves the HTTP method of the request.
65
     *
66
     *
66
     * @return string Returns the request method.
67
     * @return string Returns the request method.
67
     */
68
     */
Línea 68... Línea 69...
68
    public function getMethod();
69
    public function getMethod(): string;
69
 
70
 
70
    /**
71
    /**
71
     * Return an instance with the provided HTTP method.
72
     * Return an instance with the provided HTTP method.
Línea 80... Línea 81...
80
     *
81
     *
81
     * @param string $method Case-sensitive method.
82
     * @param string $method Case-sensitive method.
82
     * @return static
83
     * @return static
83
     * @throws \InvalidArgumentException for invalid HTTP methods.
84
     * @throws \InvalidArgumentException for invalid HTTP methods.
84
     */
85
     */
85
    public function withMethod($method);
86
    public function withMethod(string $method): RequestInterface;
Línea 86... Línea 87...
86
 
87
 
87
    /**
88
    /**
88
     * Retrieves the URI instance.
89
     * Retrieves the URI instance.
89
     *
90
     *
90
     * This method MUST return a UriInterface instance.
91
     * This method MUST return a UriInterface instance.
91
     *
92
     *
92
     * @link http://tools.ietf.org/html/rfc3986#section-4.3
93
     * @link http://tools.ietf.org/html/rfc3986#section-4.3
93
     * @return UriInterface Returns a UriInterface instance
94
     * @return UriInterface Returns a UriInterface instance
94
     *     representing the URI of the request.
95
     *     representing the URI of the request.
95
     */
96
     */
Línea 96... Línea 97...
96
    public function getUri();
97
    public function getUri(): UriInterface;
97
 
98
 
98
    /**
99
    /**
99
     * Returns an instance with the provided URI.
100
     * Returns an instance with the provided URI.
Línea 123... Línea 124...
123
     * @link http://tools.ietf.org/html/rfc3986#section-4.3
124
     * @link http://tools.ietf.org/html/rfc3986#section-4.3
124
     * @param UriInterface $uri New request URI to use.
125
     * @param UriInterface $uri New request URI to use.
125
     * @param bool $preserveHost Preserve the original state of the Host header.
126
     * @param bool $preserveHost Preserve the original state of the Host header.
126
     * @return static
127
     * @return static
127
     */
128
     */
128
    public function withUri(UriInterface $uri, $preserveHost = false);
129
    public function withUri(UriInterface $uri, bool $preserveHost = false): RequestInterface;
129
}
130
}