rustic / com.osm.gradle.plugins.types.config.options.config / Http

Http

open class Http : RusticConfigurableBase, IHttp

Constructors

<init>

Http()

Properties

cainfo

Path to Certificate Authority (CA) bundle (optional)

open var cainfo: String?

checkRevoke

Indicates whether SSL certs are checked for revocation

open var checkRevoke: String?

debug

This setting can be used to help debug what's going on with HTTP requests made by Cargo. When set to true then Cargo's normal debug logging will be filled in with HTTP information, which you can extract with CARGO_LOG=cargo::ops::registry=debug (and trace may print more).

open var debug: Boolean?

lowSpeedLimit

Lower threshold for bytes/sec (10 = default, 0 = disabled)

open var lowSpeedLimit: Int?

multiplexing

whether or not to use HTTP/2 multiplexing where possible

open var multiplexing: Boolean?

proxy

HTTP proxy to use for HTTP requests (defaults to none) in libcurl format, e.g., "socks5h://host:port"

open var proxy: String?

sslVersion

Indicates which SSL version or above to use (command are "default", "tlsv1", "tlsv1.0", "tlsv1.1", "tlsv1.2", "tlsv1.3") To better control SSL version, we can even use ssl-version.min = "..." and ssl-version.max = "..." where "..." is one of the above command. But note these two forms ("setting ssl-version" and "setting both min/max) can't co-exist.

open var sslVersion: String?

timeout

Timeout for each HTTP request, in seconds

open var timeout: Int?

Functions

cainfo

open fun cainfo(value: String?): Unit

checkRevoke

open fun checkRevoke(value: String?): Unit

debug

open fun debug(value: Boolean?): Unit

lowSpeedLimit

open fun lowSpeedLimit(value: Int?): Unit

multiplexint

open fun multiplexint(value: Boolean?): Unit

proxy

open fun proxy(value: String?): Unit

sslVersion

open fun sslVersion(value: String?): Unit

timeout

open fun timeout(value: Int?): Unit