klyn.net.ssl.SSLSocket.readLine
method
public readLine() as String throws SSLException:
Description

Reads one line from the TLS stream.

TLS line readers consume the line terminator. This matches common line-oriented network protocols where callers compare the payload line, not the transport delimiter.

import klyn.net.ssl

socket = SSLSocket("example.com", 443)
print(socket.readLine())
socket.close()
Throws
  • SSLException if the TLS socket is not connected/configured correctly or a TLS transport operation fails.