You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: md/req.md
+35-5Lines changed: 35 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The request object contains methods for reading params, headers and body (between others). In the next section we will mention the most important method of a request object, if you need more information please refer to the [javadoc]({{apidocs}}/org/jooby/Request.html).
4
4
5
-
## request params
5
+
## params
6
6
7
7
Retrieval of param is done via: [req.param("name")]({{apidocs}}/org/jooby/Request.html#param-java.lang.String-) method.
8
8
@@ -142,7 +142,7 @@ get("/", req -> {
142
142
});
143
143
```
144
144
145
-
## request headers
145
+
## headers
146
146
147
147
Retrieval of request headers is done via: [request.header("name")]({{}}Request.html#header-java.lang.String-). All the explained before for [request params](#request-request-params) apply for headers too.
148
148
@@ -172,7 +172,7 @@ get("/", req -> {
172
172
});
173
173
```
174
174
175
-
## request body
175
+
## body
176
176
177
177
Retrieval of request body is done via [request.body()]({{defdocs}}/Request.html#body--).
0 commit comments