proxy

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package proxy is the one rule for the HTTP proxy a checkpoint-publication client may be told to use (spec 0001 D16). A proxy is configured explicitly, per credential source and for the S3 store, and never taken from HTTPS_PROXY, HTTP_PROXY or NO_PROXY in the job's environment.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("proxy: invalid")

ErrInvalid reports a proxy URL this package refuses.

Functions

func Check

func Check(u *url.URL) error

Check refuses a proxy URL that is not http or https, names no host, or carries userinfo.

func Parse

func Parse(raw string) (*url.URL, error)

Parse parses a proxy URL, http(s)://host[:port]. Userinfo, a path, a query or a fragment is refused: a proxy password would sit in a job script, and the rest has no meaning for a proxy.

func Transport

func Transport(u *url.URL) (*http.Transport, error)

Transport returns a clone of net/http's default transport that sends every request through u, or connects directly when u is nil. Unlike the default, it never reads the environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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