com.firefly.codec.http2.encode.PrefaceGenerator Maven / Gradle / Ivy
package com.firefly.codec.http2.encode;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.List;
import com.firefly.codec.http2.frame.Frame;
import com.firefly.codec.http2.frame.PrefaceFrame;
public class PrefaceGenerator extends FrameGenerator {
public PrefaceGenerator() {
super(null);
}
@Override
public List generate(Frame frame) {
return Arrays.asList(ByteBuffer.wrap(PrefaceFrame.PREFACE_BYTES));
}
}