protocol

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package protocol offers operations for protocols.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPort

func GetPort(u *url.URL) string

GetPort gets the omitted port of an URL.

Types

type Requester

type Requester interface {
	Command() string
	Target() string
	Host() string
	Hostname() string
	Port() string
	GetRequest(w io.Writer, r *bufio.Reader) error
	Request(fw *forwarder.Forwarder, proxy, seg bool) (restart bool, err error)
}

Requester sends the proxied request to upstream servers.

Directories

Path Synopsis
Package http offers protocol operations.
Package http offers protocol operations.
Package socks offers socks parsing operations.
Package socks offers socks parsing operations.
Package socks4a offers protocol operations.
Package socks4a offers protocol operations.
Package socks5 offers protocol operations.
Package socks5 offers protocol operations.

Jump to

Keyboard shortcuts

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