1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #24175 from y-yagi/add_headers_to_payload

add headers to payload list [ci skip]
This commit is contained in:
Jon Moss 2016-03-12 19:56:10 -05:00
commit feef64cee4

View file

@ -112,6 +112,7 @@ Action Controller
| `:controller` | The controller name | | `:controller` | The controller name |
| `:action` | The action | | `:action` | The action |
| `:params` | Hash of request parameters without any filtered parameter | | `:params` | Hash of request parameters without any filtered parameter |
| `:headers` | Request headers |
| `:format` | html/js/json/xml etc | | `:format` | html/js/json/xml etc |
| `:method` | HTTP request verb | | `:method` | HTTP request verb |
| `:path` | Request path | | `:path` | Request path |
@ -121,6 +122,7 @@ Action Controller
controller: "PostsController", controller: "PostsController",
action: "new", action: "new",
params: { "action" => "new", "controller" => "posts" }, params: { "action" => "new", "controller" => "posts" },
headers: #<ActionDispatch::Http::Headers:0x0055a67a519b88>,
format: :html, format: :html,
method: "GET", method: "GET",
path: "/posts/new" path: "/posts/new"
@ -134,6 +136,7 @@ Action Controller
| `:controller` | The controller name | | `:controller` | The controller name |
| `:action` | The action | | `:action` | The action |
| `:params` | Hash of request parameters without any filtered parameter | | `:params` | Hash of request parameters without any filtered parameter |
| `:headers` | Request headers |
| `:format` | html/js/json/xml etc | | `:format` | html/js/json/xml etc |
| `:method` | HTTP request verb | | `:method` | HTTP request verb |
| `:path` | Request path | | `:path` | Request path |
@ -146,6 +149,7 @@ Action Controller
controller: "PostsController", controller: "PostsController",
action: "index", action: "index",
params: {"action" => "index", "controller" => "posts"}, params: {"action" => "index", "controller" => "posts"},
headers: #<ActionDispatch::Http::Headers:0x0055a67a519b88>,
format: :html, format: :html,
method: "GET", method: "GET",
path: "/posts", path: "/posts",