proxyattributes

package
v1.73.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package proxyattributes contains functions for getting and setting proxy attributes like the CONNECT address and user info.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(addr resolver.Address, opts Options) resolver.Address

Set returns a copy of addr with opts set in its attributes.

Types

type Options

type Options struct {
	User        *url.Userinfo
	ConnectAddr string
}

Options holds the proxy connection details needed during the CONNECT handshake.

func Get

func Get(addr resolver.Address) (Options, bool)

Get returns the Options for the proxy resolver.Address and a boolean value representing if the attribute is present or not. The returned data should not be mutated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL