netutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalAddr

func CanonicalAddr(url *url.URL) string

CanonicalAddr returns url.Host but always with a ":port" suffix FROM: http://golang.org/src/net/http/transport.go

func CloneHeader

func CloneHeader(in http.Header) http.Header

CloneHeader creates a deep copy of an http.Header.

func CloneRequest

func CloneRequest(req *http.Request) *http.Request

CloneRequest creates a shallow copy of the request along with a deep copy of the Headers.

Types

This section is empty.

Directories

Path Synopsis
Package testing contains utilities for testing networking functionality.
Package testing contains utilities for testing networking functionality.

Jump to

Keyboard shortcuts

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