Beispiel #1
0
// serveLandingPage is a testing helper function that creates a webserver that
// other tests for NewPassthruFilter can use to verify expected proxying
// behaviors.
func serveLandingPage(landingServer *falcore.Server) {
	err := landingServer.ListenAndServe()
	if err != nil {
		panic(err)
	}
}