23 lines
511 B
Go
23 lines
511 B
Go
package registry
|
|
|
|
//
|
|
// Registers the `httphostheader' experiment.
|
|
//
|
|
|
|
import (
|
|
"github.com/ooni/probe-cli/v3/internal/engine/experiment/httphostheader"
|
|
"github.com/ooni/probe-cli/v3/internal/model"
|
|
)
|
|
|
|
func init() {
|
|
allexperiments["http_host_header"] = &Factory{
|
|
build: func(config interface{}) model.ExperimentMeasurer {
|
|
return httphostheader.NewExperimentMeasurer(
|
|
*config.(*httphostheader.Config),
|
|
)
|
|
},
|
|
config: &httphostheader.Config{},
|
|
inputPolicy: model.InputOrQueryBackend,
|
|
}
|
|
}
|