File tree Expand file tree Collapse file tree 7 files changed +138714
-0
lines changed
version-1.10.0/globals/Response
version-1.11.0/globals/Response
version-1.12.0/globals/Response
version-1.13.0/globals/Response
version-2.0.0/globals/Response Expand file tree Collapse file tree 7 files changed +138714
-0
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change
1
+ ---
2
+ hide_title : false
3
+ hide_table_of_contents : false
4
+ pagination_next : null
5
+ pagination_prev : null
6
+ ---
7
+
8
+ # Response.redirect()
9
+
10
+ The ** ` redirect() ` ** static method of the ` Response ` interface returns a ` Response ` resulting in a redirect to the specified URL.
11
+
12
+ ## Syntax
13
+
14
+ ``` js
15
+ Response .redirect (url)
16
+ Response .redirect (url, status)
17
+ ```
18
+
19
+ ### Parameters
20
+
21
+ - ` url `
22
+ - : The URL that the new response is to originate from.
23
+ - ` status ` __ optional__
24
+ - : An optional status code for the response (e.g., ` 302 ` .)
25
+
26
+ ### Return value
27
+
28
+ A ` Response ` object.
29
+
30
+ ### Exceptions
31
+
32
+ - ` RangeError `
33
+ - : The specified status is not a redirect status.
34
+ - ` TypeError `
35
+ - : The specified URL is invalid.
Original file line number Diff line number Diff line change
1
+ ---
2
+ hide_title : false
3
+ hide_table_of_contents : false
4
+ pagination_next : null
5
+ pagination_prev : null
6
+ ---
7
+
8
+ # Response.redirect()
9
+
10
+ The ** ` redirect() ` ** static method of the ` Response ` interface returns a ` Response ` resulting in a redirect to the specified URL.
11
+
12
+ ## Syntax
13
+
14
+ ``` js
15
+ Response .redirect (url)
16
+ Response .redirect (url, status)
17
+ ```
18
+
19
+ ### Parameters
20
+
21
+ - ` url `
22
+ - : The URL that the new response is to originate from.
23
+ - ` status ` __ optional__
24
+ - : An optional status code for the response (e.g., ` 302 ` .)
25
+
26
+ ### Return value
27
+
28
+ A ` Response ` object.
29
+
30
+ ### Exceptions
31
+
32
+ - ` RangeError `
33
+ - : The specified status is not a redirect status.
34
+ - ` TypeError `
35
+ - : The specified URL is invalid.
Original file line number Diff line number Diff line change
1
+ ---
2
+ hide_title : false
3
+ hide_table_of_contents : false
4
+ pagination_next : null
5
+ pagination_prev : null
6
+ ---
7
+
8
+ # Response.redirect()
9
+
10
+ The ** ` redirect() ` ** static method of the ` Response ` interface returns a ` Response ` resulting in a redirect to the specified URL.
11
+
12
+ ## Syntax
13
+
14
+ ``` js
15
+ Response .redirect (url)
16
+ Response .redirect (url, status)
17
+ ```
18
+
19
+ ### Parameters
20
+
21
+ - ` url `
22
+ - : The URL that the new response is to originate from.
23
+ - ` status ` __ optional__
24
+ - : An optional status code for the response (e.g., ` 302 ` .)
25
+
26
+ ### Return value
27
+
28
+ A ` Response ` object.
29
+
30
+ ### Exceptions
31
+
32
+ - ` RangeError `
33
+ - : The specified status is not a redirect status.
34
+ - ` TypeError `
35
+ - : The specified URL is invalid.
Original file line number Diff line number Diff line change
1
+ ---
2
+ hide_title : false
3
+ hide_table_of_contents : false
4
+ pagination_next : null
5
+ pagination_prev : null
6
+ ---
7
+
8
+ # Response.redirect()
9
+
10
+ The ** ` redirect() ` ** static method of the ` Response ` interface returns a ` Response ` resulting in a redirect to the specified URL.
11
+
12
+ ## Syntax
13
+
14
+ ``` js
15
+ Response .redirect (url)
16
+ Response .redirect (url, status)
17
+ ```
18
+
19
+ ### Parameters
20
+
21
+ - ` url `
22
+ - : The URL that the new response is to originate from.
23
+ - ` status ` __ optional__
24
+ - : An optional status code for the response (e.g., ` 302 ` .)
25
+
26
+ ### Return value
27
+
28
+ A ` Response ` object.
29
+
30
+ ### Exceptions
31
+
32
+ - ` RangeError `
33
+ - : The specified status is not a redirect status.
34
+ - ` TypeError `
35
+ - : The specified URL is invalid.
Original file line number Diff line number Diff line change
1
+ ---
2
+ hide_title : false
3
+ hide_table_of_contents : false
4
+ pagination_next : null
5
+ pagination_prev : null
6
+ ---
7
+
8
+ # Response.redirect()
9
+
10
+ The ** ` redirect() ` ** static method of the ` Response ` interface returns a ` Response ` resulting in a redirect to the specified URL.
11
+
12
+ ## Syntax
13
+
14
+ ``` js
15
+ Response .redirect (url)
16
+ Response .redirect (url, status)
17
+ ```
18
+
19
+ ### Parameters
20
+
21
+ - ` url `
22
+ - : The URL that the new response is to originate from.
23
+ - ` status ` __ optional__
24
+ - : An optional status code for the response (e.g., ` 302 ` .)
25
+
26
+ ### Return value
27
+
28
+ A ` Response ` object.
29
+
30
+ ### Exceptions
31
+
32
+ - ` RangeError `
33
+ - : The specified status is not a redirect status.
34
+ - ` TypeError `
35
+ - : The specified URL is invalid.
Original file line number Diff line number Diff line change
1
+ ---
2
+ hide_title : false
3
+ hide_table_of_contents : false
4
+ pagination_next : null
5
+ pagination_prev : null
6
+ ---
7
+
8
+ # Response.redirect()
9
+
10
+ The ** ` redirect() ` ** static method of the ` Response ` interface returns a ` Response ` resulting in a redirect to the specified URL.
11
+
12
+ ## Syntax
13
+
14
+ ``` js
15
+ Response .redirect (url)
16
+ Response .redirect (url, status)
17
+ ```
18
+
19
+ ### Parameters
20
+
21
+ - ` url `
22
+ - : The URL that the new response is to originate from.
23
+ - ` status ` __ optional__
24
+ - : An optional status code for the response (e.g., ` 302 ` .)
25
+
26
+ ### Return value
27
+
28
+ A ` Response ` object.
29
+
30
+ ### Exceptions
31
+
32
+ - ` RangeError `
33
+ - : The specified status is not a redirect status.
34
+ - ` TypeError `
35
+ - : The specified URL is invalid.
You can’t perform that action at this time.
0 commit comments