io.vertx.core.http.HttpConnection.remoteSettingsHandler()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中io.vertx.core.http.HttpConnection.remoteSettingsHandler()方法的一些代码示例,展示了HttpConnection.remoteSettingsHandler()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpConnection.remoteSettingsHandler()方法的具体详情如下:
包路径:io.vertx.core.http.HttpConnection
类名称:HttpConnection
方法名:remoteSettingsHandler

HttpConnection.remoteSettingsHandler介绍

[英]Set an handler that is called when remote endpoint Http2Settings are updated.

This is not implemented for HTTP/1.x.
[中]设置在更新远程端点Http2Settings时调用的处理程序。
这不是为HTTP/1实现的。十、

代码示例

代码示例来源:origin: eclipse-vertx/vert.x

AtomicInteger count = new AtomicInteger();
client.get(DEFAULT_HTTPS_PORT, DEFAULT_HTTPS_HOST, "/somepath", onFailure(resp -> {})).connectionHandler(conn -> {
 conn.remoteSettingsHandler(settings -> {
  switch (count.getAndIncrement()) {
   case 0:

代码示例来源:origin: eclipse-vertx/vert.x

assertEquals(initialSettings.get('\u0007'), initialRemoteSettings.get(7));
Context ctx = Vertx.currentContext();
conn.remoteSettingsHandler(settings -> {
 assertOnIOContext(ctx);
 switch (count.getAndIncrement()) {

代码示例来源:origin: vert-x3/vertx-rx

/**
 * Set an handler that is called when remote endpoint {@link io.vertx.core.http.Http2Settings} are updated.
 * <p/>
 * This is not implemented for HTTP/1.x.
 * @param handler the handler for remote endpoint settings
 * @return a reference to this, so the API can be used fluently
 */
public io.vertx.rxjava.core.http.HttpConnection remoteSettingsHandler(Handler<Http2Settings> handler) { 
 delegate.remoteSettingsHandler(handler);
 return this;
}

代码示例来源:origin: io.vertx/vertx-rx-java

/**
 * Set an handler that is called when remote endpoint {@link io.vertx.core.http.Http2Settings} are updated.
 * <p/>
 * This is not implemented for HTTP/1.x.
 * @param handler the handler for remote endpoint settings
 * @return a reference to this, so the API can be used fluently
 */
public io.vertx.rxjava.core.http.HttpConnection remoteSettingsHandler(Handler<Http2Settings> handler) { 
 delegate.remoteSettingsHandler(handler);
 return this;
}

代码示例来源:origin: io.vertx/vertx-lang-groovy

public static io.vertx.core.http.HttpConnection remoteSettingsHandler(io.vertx.core.http.HttpConnection j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) {
  io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.remoteSettingsHandler(handler != null ? event -> handler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null));
  return j_receiver;
 }
}

代码示例来源:origin: io.vertx/vertx-core

AtomicInteger count = new AtomicInteger();
client.get(DEFAULT_HTTPS_PORT, DEFAULT_HTTPS_HOST, "/somepath", resp -> fail()).connectionHandler(conn -> {
 conn.remoteSettingsHandler(settings -> {
  switch (count.getAndIncrement()) {
   case 0:

代码示例来源:origin: io.vertx/vertx-core

assertEquals(initialSettings.get('\u0007'), initialRemoteSettings.get(7));
Context ctx = Vertx.currentContext();
conn.remoteSettingsHandler(settings -> {
 assertOnIOContext(ctx);
 switch (count.getAndIncrement()) {

相关文章