org.webpieces.frontend.api.HttpServerSocket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-frontend Show documentation
Show all versions of http-frontend Show documentation
Create a webserver with this library in just 3 lines of code. just register your HttpRequestListener and it feeds you a FrontendSocket that you write HttpResponses to
package org.webpieces.frontend.api;
import java.util.Optional;
import org.webpieces.httpcommon.api.HttpSocket;
import org.webpieces.httpcommon.api.ResponseSender;
import org.webpieces.nio.api.handlers.DataListener;
public interface HttpServerSocket extends HttpSocket {
ResponseSender getResponseSender();
DataListener getDataListener();
void upgradeHttp2(Optional maybeSettingsFrame);
void sendLocalRequestedSettings();
}