io.hyperfoil.http.api.HttpConnection Maven / Gradle / Ivy
package io.hyperfoil.http.api;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import io.hyperfoil.api.connection.Connection;
import io.netty.buffer.ByteBuf;
import io.hyperfoil.api.session.Session;
/**
* @author Julien Viet
*/
public interface HttpConnection extends Connection {
void attach(HttpConnectionPool pool);
void request(HttpRequest request,
BiConsumer[] headerAppenders,
boolean injectHostHeader,
BiFunction bodyGenerator);
HttpRequest dispatchedRequest();
HttpRequest peekRequest(int streamId);
void removeRequest(int streamId, HttpRequest request);
boolean isSecure();
HttpVersion version();
enum Status {
OPEN,
CLOSING,
CLOSED,
}
}