public class SSLSocketReader implements TextReader:
Text reader over one TLS socket connection.
import klyn.net.ssl
socket = SSLSocket("example.com", 443)
try reader = socket.reader:
print(reader.readLine())| Modifier and Type | Member | Description |
|---|---|---|
| public | SSLSocketReaderSSLSocketReader(socket as SSLSocket): |
Creates a text reader bound to a connected TLS socket. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void throws IOException: |
Closes the underlying TLS socket. |
| public | readAllTextreadAllText() as String throws IOException: |
Reads all remaining text from the TLS socket. |
| public | readLinereadLine() as String throws IOException: |
Reads one line from the TLS socket and consumes the transport line terminator. |
| public | readLinesreadLines() as ArrayList<String> throws IOException: |
Reads all remaining lines until the TLS stream closes. |