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: docs/asciidoc/router-options.adoc
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ import io.jooby.Jooby;
16
16
.setNormalizeSlash(true)
17
17
.setResetHeadersOnError(false)
18
18
.setTrustProxy(true)
19
+
.setContextAsService(true)
19
20
);
20
21
}
21
22
----
@@ -33,6 +34,7 @@ import io.jooby.Jooby
33
34
normalizeSlash = true
34
35
resetHeadersOnError = false
35
36
trustProxy = true
37
+
contextAsService = true
36
38
}
37
39
}
38
40
----
@@ -41,6 +43,11 @@ import io.jooby.Jooby
41
43
|===
42
44
| Option | Value | Default Value| Description
43
45
46
+
|contextAsService
47
+
|boolean
48
+
|false
49
+
|If enabled, allows to retrieve the javadoc:Context[] object associated with the current request via the service registry while the request is being processed.
50
+
44
51
|ignoreCase
45
52
|boolean
46
53
|false
@@ -69,7 +76,7 @@ import io.jooby.Jooby
69
76
|trustProxy
70
77
|boolean
71
78
|false
72
-
|When true handles X-Forwarded-* headers by updating the values on the current context to match what was sent in the header(s).
79
+
|When true handles `X-Forwarded-*` headers by updating the values on the current context to match what was sent in the header(s).
0 commit comments