com.webpieces.http2engine.api.client.Http2ClientEngineFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http2-engine Show documentation
Show all versions of http2-engine Show documentation
A re-usable asynchronous HTTP/2 parser
package com.webpieces.http2engine.api.client;
import com.webpieces.http2engine.impl.client.Level1ClientEngine;
public class Http2ClientEngineFactory {
private InjectionConfig injectionConfig;
public Http2ClientEngineFactory(InjectionConfig injectionConfig) {
this.injectionConfig = injectionConfig;
}
/*
* TODO: move this to client...
* HeaderSettings localSettings = new HeaderSettings();
localSettings.setId(id);
//allow 100 frames of room
long initialWindowSize = 100 * localSettings.getMaxFrameSize();
//localSettings.setInitialWindowSize(1000);
localSettings.setInitialWindowSize(initialWindowSize);
*/
public Http2ClientEngine createClientParser(String logKey, ClientEngineListener resultListener) {
return new Level1ClientEngine(logKey, resultListener, injectionConfig);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy