Search in sources :

Example 11 with Http2Frame

use of com.webpieces.http2parser.api.dto.lib.Http2Frame in project webpieces by deanhiller.

the class HpackParserImpl method createPushPromiseData.

private DataWrapper createPushPromiseData(MarshalStateImpl state, Http2Push p) {
    long maxFrameSize = state.getMaxRemoteFrameSize();
    Encoder encoder = state.getEncoder();
    List<Http2Frame> headerFrames = encoding.translateToFrames(maxFrameSize, encoder, p);
    return translate(headerFrames);
}
Also used : Encoder(com.twitter.hpack.Encoder) Http2Frame(com.webpieces.http2parser.api.dto.lib.Http2Frame)

Aggregations

Http2Frame (com.webpieces.http2parser.api.dto.lib.Http2Frame)11 Encoder (com.twitter.hpack.Encoder)4 Http2Header (com.webpieces.http2parser.api.dto.lib.Http2Header)4 DataWrapper (org.webpieces.data.api.DataWrapper)4 Http2Response (com.webpieces.hpack.api.dto.Http2Response)2 HeaderEncoding (com.webpieces.hpack.impl.HeaderEncoding)2 GoAwayFrame (com.webpieces.http2parser.api.dto.GoAwayFrame)2 ArrayList (java.util.ArrayList)2 Test (org.junit.Test)2 Http2Request (com.webpieces.hpack.api.dto.Http2Request)1 ShutdownStream (com.webpieces.http2engine.api.error.ShutdownStream)1 Http2Memento (com.webpieces.http2parser.api.Http2Memento)1 ContinuationFrame (com.webpieces.http2parser.api.dto.ContinuationFrame)1 HeadersFrame (com.webpieces.http2parser.api.dto.HeadersFrame)1 PushPromiseFrame (com.webpieces.http2parser.api.dto.PushPromiseFrame)1 HasHeaderFragment (com.webpieces.http2parser.api.dto.lib.HasHeaderFragment)1 LinkedList (java.util.LinkedList)1 MockResponseListener (org.webpieces.http2client.mock.MockResponseListener)1 MockStreamWriter (org.webpieces.http2client.mock.MockStreamWriter)1