同步操作将从 光魔科技/vertx-examples 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Here you will find examples demonstrating Vert.x Web Client in action.
Vert.x Web Client is an asynchronous HTTP and HTTP/2 client. Please consult the Vert.x Web Client manual for detailed documentation on Vert.x Web Client.
When running in an IDE you can edit src/main/resources/vertx-default-jul-logging.properties
to configure logging.
Trace logging is enabled for Vert.x Web Client classes so you can easily trace requests as they are routed through different
handlers.
To use Vert.x Web Client in your own Maven or Gradle project you will need following dependencies
Group ID: io.vertx Artifact ID: vertx-core
and
Group ID: io.vertx Artifact ID: vertx-web-client
If you’re using a template engine you will also need to add the engine dependency explicitly, depending on the engine you are using.
This example uses the web client to send a request and log the response.
First you need to run the server then you can run the client.
This example uses the web client to send a request with query params using the fluent API and log the response.
First you need to run the server then you can run the client.
The server logs the query string on the console.
The client add several query parameters to the http request with the fluent API, the client takes care of encoding the parameters.
This example is like the simple example but shows how to configure the client for sending SSL/TLS requests.
First you need to run the server then you can run the client.
The web client is able to send various kinds of bodies to the server.
This examples shows how to send a body with "Hello World" with the web client.
First you need to run the server then you can run the client.
This examples shows how to send a form with the web client.
First you need to run the server then you can run the client.
This examples shows how to send a json object with the web client.
First you need to run the server then you can run the client.
This examples shows how to send a simple java object encoded as a json object with the web client.
First you need to run the server then you can run the client.
This examples shows how to send a multipart form with the web client.
First you need to run the server then you can run the client.
The web client can unmarshall response bodies to various formats.
This examples shows how to decode a json object body with the web client.
First you need to run the server then you can run the client.
This examples shows how to decode a json object body to a simple java object with the web client.
First you need to run the server then you can run the client.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。