com.webpieces.hpack.api.HpackParserFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http2-hpack Show documentation
Show all versions of http2-hpack Show documentation
A re-usable asynchronous HTTP/2 parser WITH header serialization/deserialization (hpack)
package com.webpieces.hpack.api;
import org.webpieces.data.api.BufferPool;
import com.webpieces.hpack.impl.HpackParserImpl;
import com.webpieces.hpack.impl.HpackStatefulParserImpl;
import com.webpieces.http2parser.api.Http2Parser;
import com.webpieces.http2parser.api.Http2ParserFactory;
public class HpackParserFactory {
public static HpackParser createParser(BufferPool bufferPool, boolean ignoreUnknownFrames) {
Http2Parser parser = Http2ParserFactory.createParser(bufferPool);
return new HpackParserImpl(parser, ignoreUnknownFrames);
}
public static HpackStatefulParser createStatefulParser(BufferPool bufferPool, HpackConfig config) {
HpackParser parser = createParser(bufferPool, config.isIgnoreUnknownFrames());
return new HpackStatefulParserImpl(parser, config);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy