Package io.github.parthappm.http.client
Class HttpsClient
java.lang.Object
io.github.parthappm.http.client.Client
io.github.parthappm.http.client.HttpsClient
The HTTP Client implementation for secured HTTP connection over Secured Sockets Layer (SSL)
-
Constructor Summary
ConstructorsConstructorDescriptionHttpsClient
(String host) Creates a socket connection to the specified host at port 443 and constructs a new HttpsClient object.HttpsClient
(String host, int port) Creates a socket connection to the specified host at specified port and constructs a new HttpsClient object. -
Method Summary
Methods inherited from class io.github.parthappm.http.client.Client
addHeader, addParameter, close, followRedirect, keepConnectionOpen, request, setBody, setHeader, setMethod, setParameters, setPath, setSocket, suppressException
-
Constructor Details
-
HttpsClient
Creates a socket connection to the specified host at port 443 and constructs a new HttpsClient object.- Parameters:
host
- The host name or ip address of the server
-
HttpsClient
Creates a socket connection to the specified host at specified port and constructs a new HttpsClient object.- Parameters:
host
- The host name or ip address of the serverport
- The port number at which the server is running
-