proxy

package
v0.0.0-...-5559093 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package proxy is the core proxy for the application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSingleHostReverseProxy

func NewSingleHostReverseProxy(target *url.URL, passHostHeader bool, tlsConfig *tls.Config) *httputil.ReverseProxy

NewSingleHostReverseProxy returns a new ReverseProxy that routes URLs to the scheme, host, and base path provided in target. If the target's path is "/base" and the incoming request was for "/dir", the target request will be for /base/dir. NewSingleHostReverseProxy rewrites the Host header, and uses a custom tlsConfig.

Types

This section is empty.

Jump to

Keyboard shortcuts

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