All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.smithy.kotlin.runtime.http.engine.ProxyConfig.kt Maven / Gradle / Ivy

There is a newer version: 1.3.25
Show newest version
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

package aws.smithy.kotlin.runtime.http.engine

import aws.smithy.kotlin.runtime.net.url.Url

/**
 * A proxy configuration
 */
public sealed class ProxyConfig {
    /**
     * Represents a direct connection or absence of a proxy. Can be used to disable proxy support inferred from
     * environment for example.
     */
    public object Direct : ProxyConfig()

    /**
     * HTTP based proxy (with or without user/password auth)
     */
    public data class Http(public val url: Url) : ProxyConfig() {
        public constructor(url: String) : this(Url.parse(url))
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy