httpconn

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 9 Imported by: 0

README

httpconn

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownScheme = errors.New("uknown scheme")
)

Functions

func Accept

func Accept(w http.ResponseWriter, r *http.Request) (net.Conn, error)

func Dial

func Dial(rawURL string) (net.Conn, error)

func DialHTTP

func DialHTTP(host, path string) (net.Conn, error)

func DialHTTPS

func DialHTTPS(host, path string) (net.Conn, error)

Types

type Dialer

type Dialer struct {
	// contains filtered or unexported fields
}

func NewDialer

func NewDialer() *Dialer

func (*Dialer) Dial

func (d *Dialer) Dial(rawURL string) (net.Conn, error)

func (*Dialer) DialHTTP

func (d *Dialer) DialHTTP(host, path string) (net.Conn, error)

func (*Dialer) DialHTTPS

func (d *Dialer) DialHTTPS(host, path string) (net.Conn, error)

func (*Dialer) SetTimeout

func (d *Dialer) SetTimeout(timeout time.Duration)

Jump to

Keyboard shortcuts

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