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
Click to show internal directories.
Click to hide internal directories.