klyn.net.HttpClient.HttpClient
constructor
public HttpClient(timeout as ULong = 0u,
followRedirects as Boolean = true,
tlsOptions as TlsOptions = null):
Description

Creates an HTTP client.

Parameters
ParameterDescription
timeoutRequest timeout in milliseconds. Use 0u for no timeout.
followRedirectsRedirect-following flag.
tlsOptionsOptional default TLS settings for HTTPS requests.
Example
import klyn.net

client = HttpClient(timeout=5000u)
print(client.timeout)