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

Parameter | Description
--- | ---
`timeout` | Request timeout in milliseconds. Use `0u` for no timeout.
`followRedirects` | Redirect-following flag.
`tlsOptions` | Optional default TLS settings for HTTPS requests.

Example

    import klyn.net

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