
serguei.http.HttpServerOnConnectProcess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http Show documentation
Show all versions of http Show documentation
Simple HTTP client and HTTP server. Easy to use and small. No dependencies.
package serguei.http;
import java.net.Socket;
public interface HttpServerOnConnectProcess {
/**
* Process socket immediately after connection is made but after TLS handshake took place (if applicable)
*
* @param socket
* - connection's socket
* @param clientHello
* - information about protocol (if TLS), null if this is a plain connection
* @return true if we would like to continue with this connection and false if we want to close it, there is no need
* to close the socket if returning false
*/
public boolean process(Socket socket, ClientHello clientHello);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy