package netutil
import "github.com/coreos/etcd/pkg/netutil"
Index ¶
- func BasicAuth(r *http.Request) (username, password string, ok bool)
- func DropPort(port int) error
- func RecoverPort(port int) error
- func URLStringsEqual(a []string, b []string) bool
Functions ¶
func BasicAuth ¶
BasicAuth returns the username and password provided in the request's Authorization header, if the request uses HTTP Basic Authentication. See RFC 2617, Section 2. Based on the BasicAuth method from the Golang standard lib. TODO: use the standard lib BasicAuth method when we move to Go 1.4.
func DropPort ¶
DropPort drops all tcp packets that are received from the given port and sent to the given port.
func RecoverPort ¶
RecoverPort stops dropping tcp packets at given port.
func URLStringsEqual ¶
Source Files ¶
- Version
- v2.2.2+incompatible
- Published
- Nov 19, 2015
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 4 minutes ago –
Tools for package owners.