All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.webpieces.hpack.api.HpackParserFactory Maven / Gradle / Ivy

Go to download

A re-usable asynchronous HTTP/2 parser WITH header serialization/deserialization (hpack)

There is a newer version: 2.1.109
Show newest version
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