com.webpieces.http2engine.impl.client.Level6ClntLocalFlowControl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http2-engine Show documentation
Show all versions of http2-engine Show documentation
A re-usable asynchronous HTTP/2 parser
package com.webpieces.http2engine.impl.client;
import org.webpieces.util.futures.XFuture;
import com.webpieces.http2.api.dto.highlevel.Http2Push;
import com.webpieces.http2.api.dto.highlevel.Http2Response;
import com.webpieces.http2engine.impl.shared.Level6LocalFlowControl;
import com.webpieces.http2engine.impl.shared.Level7MarshalAndPing;
import com.webpieces.http2engine.impl.shared.data.HeaderSettings;
import com.webpieces.http2engine.impl.shared.data.Stream;
public class Level6ClntLocalFlowControl extends Level6LocalFlowControl {
private Level8NotifyClntListeners notify;
public Level6ClntLocalFlowControl(String logId, Level7MarshalAndPing marshalLayer, Level8NotifyClntListeners notifyListener,
HeaderSettings localSettings) {
super(logId, marshalLayer, notifyListener, localSettings);
notify = notifyListener;
}
public XFuture fireResponseToApp(Stream stream, Http2Response payload) {
return notify.sendResponseToApp(stream, payload);
}
public XFuture firePushToApp(ClientPushStream stream, Http2Push fullPromise) {
return notify.sendPushToApp(stream, fullPromise);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy