Java Code Examples for io.netty.handler.codec.http2.Http2Settings#pushEnabled()
The following examples show how to use
io.netty.handler.codec.http2.Http2Settings#pushEnabled() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Http2SettingsSpec.java From reactor-netty with Apache License 2.0 | 5 votes |
Http2SettingsSpec(Build build) { Http2Settings settings = build.http2Settings; headerTableSize = settings.headerTableSize(); initialWindowSize = settings.initialWindowSize(); maxConcurrentStreams = settings.maxConcurrentStreams(); maxFrameSize = settings.maxFrameSize(); maxHeaderListSize = settings.maxHeaderListSize(); pushEnabled = settings.pushEnabled(); }
Example 2
Source File: HttpClientConfig.java From reactor-netty with Apache License 2.0 | 5 votes |
Http2Settings http2Settings() { Http2Settings settings = Http2Settings.defaultSettings(); if (http2Settings != null) { Long headerTableSize = http2Settings.headerTableSize(); if (headerTableSize != null) { settings.headerTableSize(headerTableSize); } Integer initialWindowSize = http2Settings.initialWindowSize(); if (initialWindowSize != null) { settings.initialWindowSize(initialWindowSize); } Long maxConcurrentStreams = http2Settings.maxConcurrentStreams(); if (maxConcurrentStreams != null) { settings.maxConcurrentStreams(maxConcurrentStreams); } Integer maxFrameSize = http2Settings.maxFrameSize(); if (maxFrameSize != null) { settings.maxFrameSize(maxFrameSize); } settings.maxHeaderListSize(http2Settings.maxHeaderListSize()); Boolean pushEnabled = http2Settings.pushEnabled(); if (pushEnabled != null) { settings.pushEnabled(pushEnabled); } } return settings; }
Example 3
Source File: HttpServerConfig.java From reactor-netty with Apache License 2.0 | 5 votes |
Http2Settings http2Settings() { Http2Settings settings = Http2Settings.defaultSettings(); if (http2Settings != null) { Long headerTableSize = http2Settings.headerTableSize(); if (headerTableSize != null) { settings.headerTableSize(headerTableSize); } Integer initialWindowSize = http2Settings.initialWindowSize(); if (initialWindowSize != null) { settings.initialWindowSize(initialWindowSize); } Long maxConcurrentStreams = http2Settings.maxConcurrentStreams(); if (maxConcurrentStreams != null) { settings.maxConcurrentStreams(maxConcurrentStreams); } Integer maxFrameSize = http2Settings.maxFrameSize(); if (maxFrameSize != null) { settings.maxFrameSize(maxFrameSize); } settings.maxHeaderListSize(http2Settings.maxHeaderListSize()); Boolean pushEnabled = http2Settings.pushEnabled(); if (pushEnabled != null) { settings.pushEnabled(pushEnabled); } } return settings; }
Example 4
Source File: Http2ClientInitializer.java From jmeter-http2-plugin with Apache License 2.0 | 5 votes |
private Http2FrameWriter frameWriter() { // Set initial SETTINGS Http2Settings settings = new Http2Settings(); settings.pushEnabled(false); settings.maxConcurrentStreams(100); return new Http2OutboundFrameLogger(new CustomHttp2FrameWriter(settings), logger); }