com.firefly.client.http2.HTTPClientConnection Maven / Gradle / Ivy
package com.firefly.client.http2;
import com.firefly.codec.http2.frame.SettingsFrame;
import com.firefly.codec.http2.model.MetaData.Request;
import com.firefly.codec.http2.stream.HTTPConnection;
import com.firefly.codec.http2.stream.HTTPOutputStream;
import com.firefly.codec.websocket.model.IncomingFrames;
import com.firefly.codec.websocket.stream.WebSocketConnection;
import com.firefly.codec.websocket.stream.WebSocketPolicy;
import com.firefly.utils.concurrent.Promise;
import java.nio.ByteBuffer;
import java.util.Collection;
public interface HTTPClientConnection extends HTTPConnection {
void send(Request request, Promise promise, ClientHTTPHandler handler);
void send(Request request, ClientHTTPHandler handler);
void send(Request request, ByteBuffer buffer, ClientHTTPHandler handler);
void send(Request request, ByteBuffer[] buffers, ClientHTTPHandler handler);
void send(Request request, Collection buffers, ClientHTTPHandler handler);
HTTPOutputStream sendRequestWithContinuation(Request request, ClientHTTPHandler handler);
HTTPOutputStream getHTTPOutputStream(Request request, ClientHTTPHandler handler);
void upgradeHTTP2(Request request, SettingsFrame settings, Promise promise,
ClientHTTPHandler upgradeHandler, ClientHTTPHandler http2ResponseHandler);
void upgradeWebSocket(Request request, WebSocketPolicy policy, Promise promise,
ClientHTTPHandler upgradeHandler, IncomingFrames incomingFrames);
}