http

package
v0.0.0-...-f92ddc6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendHandler

type BackendHandler struct {
	// maps Host (from request header) to destination Host
	Config *common.Config
}

for every frontend requests, it connects to the backend server and relays the exact same response from the backend to the frontend

func (BackendHandler) ServeHTTP

func (handler BackendHandler) ServeHTTP(frontendResponseWriter http.ResponseWriter, frontendRequest *http.Request)

the http.Handler

Jump to

Keyboard shortcuts

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