plugin

package
v0.0.0-...-db8089e Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package plugin is a Caddy plugin that tunnels UDP/TCP data through HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	NextHandler   httpserver.Handler
	RequestPath   string // Temporary, remove when configuration system done
	Upstream      string
	UpstreamProto string
}

Server is a httpserver.Handler that handles TCP/UDP tunneling requests.

func (Server) ServeHTTP

func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)

Serves HTTP requests for tunneling. See httpserver.Handler.

Jump to

Keyboard shortcuts

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