Package com.webpieces.hpack.api
Interface HpackStatefulParser
-
- All Known Implementing Classes:
HpackStatefulParserImpl
public interface HpackStatefulParser
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.webpieces.data.api.DataWrappermarshal(com.webpieces.http2.api.dto.lowlevel.lib.Http2Msg msg)java.lang.StringmarshalSettingsPayload(java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting> settings)Base 64 of the 'payload' of the SettingsFrame only, excluding the frame pieceUnmarshalStateunmarshal(org.webpieces.data.api.DataWrapper newData)java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting>unmarshalSettingsPayload(java.lang.String base64SettingsPayload)Unfortunately, in the http1.1 request to a server, the base64 http/2 upgrade settings header ONLY contains the 'payload' of a SettingFrame, so we must have a method to just parse the payload of a settings frame so this is a one-off function that I don't like exposing but need to.
-
-
-
Method Detail
-
unmarshal
UnmarshalState unmarshal(org.webpieces.data.api.DataWrapper newData)
-
marshal
org.webpieces.data.api.DataWrapper marshal(com.webpieces.http2.api.dto.lowlevel.lib.Http2Msg msg)
-
unmarshalSettingsPayload
java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting> unmarshalSettingsPayload(java.lang.String base64SettingsPayload)
Unfortunately, in the http1.1 request to a server, the base64 http/2 upgrade settings header ONLY contains the 'payload' of a SettingFrame, so we must have a method to just parse the payload of a settings frame so this is a one-off function that I don't like exposing but need to.
-
marshalSettingsPayload
java.lang.String marshalSettingsPayload(java.util.List<com.webpieces.http2.api.dto.lowlevel.lib.Http2Setting> settings)
Base 64 of the 'payload' of the SettingsFrame only, excluding the frame piece
-
-