public interface RoutingExchange
RoutingContext.| Modifier and Type | Method and Description |
|---|---|
io.vertx.ext.web.RoutingContext |
context() |
default Optional<String> |
getHeader(CharSequence headerName) |
default Optional<String> |
getParam(String paramName) |
default io.vertx.core.http.HttpServerResponse |
notFound()
Set the response status code to 200 and return the response.
|
default io.vertx.core.http.HttpServerResponse |
ok()
Set the response status code to 200 and return the response.
|
default void |
ok(String chunk)
Set the response status code to 200, write a chunk of data to the response then ends it.
|
default io.vertx.core.http.HttpServerRequest |
request() |
default io.vertx.core.http.HttpServerResponse |
response() |
default io.vertx.core.http.HttpServerResponse |
serverError()
Set the response status code to 200 and return the response.
|
io.vertx.ext.web.RoutingContext context()
default io.vertx.core.http.HttpServerRequest request()
default Optional<String> getParam(String paramName)
paramName - HttpServerRequest.getParam(String)default Optional<String> getHeader(CharSequence headerName)
headerName - HttpServerRequest.getHeader(CharSequence)default io.vertx.core.http.HttpServerResponse response()
default io.vertx.core.http.HttpServerResponse ok()
HttpServerResponse.end() afterwards to end the response.default void ok(String chunk)
chunk - default io.vertx.core.http.HttpServerResponse serverError()
HttpServerResponse.end() afterwards to end the response.default io.vertx.core.http.HttpServerResponse notFound()
HttpServerResponse.end() afterwards to end the response.Copyright © 2021 JBoss by Red Hat. All rights reserved.