@@ -571,7 +571,8 @@ default Locale locale() {
571571 * Recreates full/entire url of the current request using the <code>Host</code> header.
572572 *
573573 * <p>If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header,
574- * please consider to set {@link Router#setTrustProxy(boolean)} option.
574+ * please consider to set {@link Router#setRouterOptions(RouterOptions)} {@link
575+ * RouterOptions#setTrustProxy(boolean)} option.
575576 *
576577 * @return Full/entire request url using the <code>Host</code> header.
577578 */
@@ -581,7 +582,8 @@ default Locale locale() {
581582 * Recreates full/entire request url using the <code>Host</code> header with a custom path/suffix.
582583 *
583584 * <p>If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header,
584- * please consider to set {@link Router#setTrustProxy(boolean)} option.
585+ * please consider to set {@link Router#setRouterOptions(RouterOptions)} {@link
586+ * RouterOptions#setTrustProxy(boolean)} option.
585587 *
586588 * @param path Path or suffix to use, can also include query string parameters.
587589 * @return Full/entire request url using the <code>Host</code> header.
@@ -592,7 +594,8 @@ default Locale locale() {
592594 * The IP address of the client or last proxy that sent the request.
593595 *
594596 * <p>If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header,
595- * please consider to set {@link Router#setTrustProxy(boolean)} option.
597+ * please consider to set {@link Router#setRouterOptions(RouterOptions)} {@link
598+ * RouterOptions#setTrustProxy(boolean)} option.
596599 *
597600 * @return The IP address of the client or last proxy that sent the request or <code>empty string
598601 * </code> for interrupted requests.
@@ -613,7 +616,8 @@ default Locale locale() {
613616 * method.
614617 *
615618 * <p>If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header,
616- * please consider to set {@link Router#setTrustProxy(boolean)} option.
619+ * please consider to set {@link Router#setRouterOptions(RouterOptions)} {@link
620+ * RouterOptions#setTrustProxy(boolean)} option.
617621 *
618622 * @return Return the host that this request was sent to, in general this will be the value of the
619623 * Host header, minus the port specifier.
@@ -635,7 +639,8 @@ default Locale locale() {
635639 * the Host.
636640 *
637641 * <p>If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header,
638- * please consider to set {@link Router#setTrustProxy(boolean)} option.
642+ * please consider to set {@link Router#setRouterOptions(RouterOptions)} {@link
643+ * RouterOptions#setTrustProxy(boolean)} option.
639644 *
640645 * @return Return the host that this request was sent to, in general this will be the value of the
641646 * Host header.
@@ -1086,15 +1091,6 @@ default Value lookup(String name) {
10861091 */
10871092 Context setResponseType (@ NonNull MediaType contentType );
10881093
1089- /**
1090- * Set response content type header.
1091- *
1092- * @param contentType Content type.
1093- * @param charset Charset.
1094- * @return This context.
1095- */
1096- Context setResponseType (@ NonNull MediaType contentType , @ Nullable Charset charset );
1097-
10981094 /**
10991095 * Set the default response content type header. It is used if the response content type header
11001096 * was not set yet.
@@ -1200,15 +1196,6 @@ Context responseStream(
12001196 */
12011197 PrintWriter responseWriter (@ NonNull MediaType contentType );
12021198
1203- /**
1204- * HTTP response channel as response writer.
1205- *
1206- * @param contentType Content type.
1207- * @param charset Charset.
1208- * @return HTTP channel as response writer. Usually for chunked response.
1209- */
1210- PrintWriter responseWriter (@ NonNull MediaType contentType , @ Nullable Charset charset );
1211-
12121199 /**
12131200 * HTTP response channel as response writer.
12141201 *
@@ -1229,19 +1216,6 @@ Context responseStream(
12291216 Context responseWriter (
12301217 MediaType contentType , @ NonNull SneakyThrows .Consumer <PrintWriter > consumer ) throws Exception ;
12311218
1232- /**
1233- * HTTP response channel as response writer.
1234- *
1235- * @param contentType Content type.
1236- * @param charset Charset.
1237- * @param consumer Writer consumer.
1238- * @return This context.
1239- * @throws Exception Is something goes wrong.
1240- */
1241- Context responseWriter (
1242- MediaType contentType , @ Nullable Charset charset , SneakyThrows .Consumer <PrintWriter > consumer )
1243- throws Exception ;
1244-
12451219 /**
12461220 * Send a <code>302</code> response.
12471221 *
@@ -1390,10 +1364,12 @@ Context responseWriter(
13901364
13911365 /**
13921366 * True if response headers are cleared on application error. If none set it uses the
1393- * default/global value specified by {@link RouterOptions#RESET_HEADERS_ON_ERROR}.
1367+ * default/global value specified by {@link Router#setRouterOptions(RouterOptions)} {@link
1368+ * RouterOptions#setResetHeadersOnError(boolean)} option.
13941369 *
13951370 * @return True if response headers are cleared on application error. If none set it uses the
1396- * default/global value specified by {@link RouterOptions#RESET_HEADERS_ON_ERROR}.
1371+ * default/global value specified by {@link Router#setRouterOptions(RouterOptions)} {@link
1372+ * RouterOptions#setResetHeadersOnError(boolean)} option.
13971373 */
13981374 boolean getResetHeadersOnError ();
13991375
0 commit comments